Ensure bind commands are only performed in interactive shells.

This commit is contained in:
Scott Wallace 2016-01-26 16:00:53 +00:00
parent 83f52531f9
commit 631a23fd28

View file

@ -77,7 +77,9 @@ export GOPATH=${HOME}/src/go
#--------------------------------------------------------------------------------
# Rebind CTRL-T to search forward in history
#--------------------------------------------------------------------------------
bind "\C-t":forward-search-history
if [ -n "$PS1" ]; then
bind "\C-t":forward-search-history
fi
#--------------------------------------------------------------------------------
#--------------------------------------------------------------------------------