Skip to content

Instantly share code, notes, and snippets.

@rockbot
Created December 4, 2013 22:56
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 rockbot/7797139 to your computer and use it in GitHub Desktop.
Save rockbot/7797139 to your computer and use it in GitHub Desktop.
dotfiles
# By default up/down are bound to previous-history
# and next-history respectively. The following does the
# same but gives the extra functionality where if you
# type any text (or more accurately, if there is any text
# between the start of the line and the cursor),
# the subset of the history starting with that text
# is searched (like 4dos for e.g.).
# Note to get rid of a line just Ctrl-C
"\e[B": history-search-forward
"\e[A": history-search-backward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment