Skip to content

Instantly share code, notes, and snippets.

@ralex
Created June 5, 2019 08:11
Show Gist options
  • Save ralex/50b6b74504f5177bfbfc8bfd269b3c8a to your computer and use it in GitHub Desktop.
Save ralex/50b6b74504f5177bfbfc8bfd269b3c8a to your computer and use it in GitHub Desktop.
Bash history on partial data input
# Put this in ~/.inputrc
# Then type "ssh" + ↑ or ↓ to get your latest ssh connections
# arrow up
"\e[A":history-search-backward
# arrow down
"\e[B":history-search-forward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment