Ensure bind commands are only performed in interactive shells.
This commit is contained in:
parent
83f52531f9
commit
631a23fd28
4
.bashrc
4
.bashrc
|
@ -77,7 +77,9 @@ export GOPATH=${HOME}/src/go
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
# Rebind CTRL-T to search forward in history
|
# 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
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue