Skip to content

Instantly share code, notes, and snippets.

@mschubert
Created December 22, 2016 21:34
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 mschubert/ccef05eca24cd7556ae587c6169e6da8 to your computer and use it in GitHub Desktop.
Save mschubert/ccef05eca24cd7556ae587c6169e6da8 to your computer and use it in GitHub Desktop.
Type the first letters of an old command and then "up-arrow" search
# enable line editing for terminal
if [ -t 1 ]; then
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment