Created
December 22, 2016 21:34
-
-
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
This file contains hidden or 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
# 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