diff --git a/plugins/available/history.plugin.bash b/plugins/available/history.plugin.bash index 512bbf92..386e05d1 100644 --- a/plugins/available/history.plugin.bash +++ b/plugins/available/history.plugin.bash @@ -1,4 +1,7 @@ # enter a few characters and press UpArrow/DownArrow # to search backwards/forwards through the history -bind '"":history-search-backward' -bind '"":history-search-forward' +if [ -t 1 ]; +then + bind '"":history-search-backward' + bind '"":history-search-forward' +fi