Skip to content

Instantly share code, notes, and snippets.

@nefarioustim
Created November 17, 2012 22:49
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 nefarioustim/4100970 to your computer and use it in GitHub Desktop.
Save nefarioustim/4100970 to your computer and use it in GitHub Desktop.
Better bash incremental searching
# Bash can cycle through lines starting in a particular way
#
# Just type in a few characters then press Up
# - Don’t need to press Up so many times
# - Don’t see lines that merely contain those letters
# - Don’t have to chance executing the wrong line
"\e[A": history-search-backward
"\e[B": history-search-forward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment