Files
bash-it/plugins/available/history.plugin.bash
Eddie Hurtig 7bbc077990 Check for PTY before attempting to use bind
After running a dist upgrade on one of my Ubuntu 14.04 test workstations I started receiving errors after a graphical login. This should also fix remote ssh login problems as seen in http://superuser.com/questions/892658/remote-ssh-commands-bash-bind-warning-line-editing-not-enabled
2015-06-05 17:56:05 -04:00

8 lines
207 B
Bash
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# enter a few characters and press UpArrow/DownArrow
# to search backwards/forwards through the history
if [ -t 1 ];
then
bind '"":history-search-backward'
bind '"":history-search-forward'
fi