Merge pull request #1393 from ahmed-masud/develop
Fixed test of whether or not current session is interactive
This commit is contained in:
@@ -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 '"[A":history-search-backward'
|
bind '"[A":history-search-backward'
|
||||||
bind '"[B":history-search-forward'
|
bind '"[B":history-search-forward'
|
||||||
|
|||||||
Reference in New Issue
Block a user