Fixed test of whether or not current session is interactive

pull/1393/head
Ahmed Masud 2019-07-06 16:53:45 -04:00
parent 5c169920d5
commit ce935801a3
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ cite about-plugin
about-plugin 'history manipulation' about-plugin 'history manipulation'
# enter a few characters and press UpArrow/DownArrow # enter a few characters and press UpArrow/DownArrow
# to search backwards/forwards through the history # to search backwards/forwards through the history
if [ -t 1 ] if [[ ${SHELLOPTS} =~ (vi|emacs) ]]
then then
bind '"":history-search-backward' bind '"":history-search-backward'
bind '"":history-search-forward' bind '"":history-search-forward'