Created
June 21, 2013 01:31
-
-
Save yanyaoer/5828230 to your computer and use it in GitHub Desktop.
filter history with prefix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vi ~/.inputrc | |
# $ ssh [press up/down] | |
# ssh remote_a ssh remote_b | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
set show-all-if-ambiguous on | |
set completion-ignore-case on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.vpsee.com/2013/04/search-bash-history-using-the-up-and-down-arrows