Skip to content

Instantly share code, notes, and snippets.

@igordot
Created January 13, 2014 16:35
Show Gist options
  • Save igordot/8403349 to your computer and use it in GitHub Desktop.
Save igordot/8403349 to your computer and use it in GitHub Desktop.
Search through your history using the up and down arrows. Start typing any command and press the up arrow to view everything in your history that starts with that, analogous to how tab completion works. These commands must be added to the ~/.inputrc file (init file) which must then be reloaded (using "C-x C-r" or "bind -f ~/.inputrc").
"\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