Skip to content

Instantly share code, notes, and snippets.

@yanyaoer
Created June 21, 2013 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanyaoer/5828230 to your computer and use it in GitHub Desktop.
Save yanyaoer/5828230 to your computer and use it in GitHub Desktop.
filter history with prefix
$ 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