Fixed test of whether or not current session is interactive
parent
5c169920d5
commit
ce935801a3
|
|
@ -2,7 +2,7 @@ cite about-plugin
|
|||
about-plugin 'history manipulation'
|
||||
# enter a few characters and press UpArrow/DownArrow
|
||||
# to search backwards/forwards through the history
|
||||
if [ -t 1 ]
|
||||
if [[ ${SHELLOPTS} =~ (vi|emacs) ]]
|
||||
then
|
||||
bind '"[A":history-search-backward'
|
||||
bind '"[B":history-search-forward'
|
||||
|
|
|
|||
Loading…
Reference in New Issue