Skip to content

Instantly share code, notes, and snippets.

@muhittin
Created October 21, 2013 11:57
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 muhittin/7082700 to your computer and use it in GitHub Desktop.
Save muhittin/7082700 to your computer and use it in GitHub Desktop.
Save this as ~/.inputrc:
# make the up and down arrows cycle through commands that match the start of a line
"\e[A": history-search-backward
"\e[B": history-search-forward
Option-up would be \e\e[A and control-p \C-p. You can see the escape sequences of other key combinations by pressing control-v.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment