Merge pull request #497 from EdHurtig/patch-1
Check for PTY before attempting to use bind
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
# 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
|
||||||
bind '"[A":history-search-backward'
|
if [ -t 1 ];
|
||||||
bind '"[B":history-search-forward'
|
then
|
||||||
|
bind '"[A":history-search-backward'
|
||||||
|
bind '"[B":history-search-forward'
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user