From ce935801a3c0d14824004c622942ec81ffa66b12 Mon Sep 17 00:00:00 2001 From: Ahmed Masud Date: Sat, 6 Jul 2019 16:53:45 -0400 Subject: [PATCH] Fixed test of whether or not current session is interactive --- plugins/available/history.plugin.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/available/history.plugin.bash b/plugins/available/history.plugin.bash index efd33981..528548ef 100644 --- a/plugins/available/history.plugin.bash +++ b/plugins/available/history.plugin.bash @@ -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 '"":history-search-backward' bind '"":history-search-forward'