Created
November 17, 2012 22:49
-
-
Save nefarioustim/4100970 to your computer and use it in GitHub Desktop.
Better bash incremental searching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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