Created
November 1, 2011 17:54
-
-
Save jacine/1331341 to your computer and use it in GitHub Desktop.
Command history
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
| # Set history options | |
| export HISTFILESIZE=10000000 | |
| export HISTSIZE=1000 | |
| export HISTCONTROL=ignoredups | |
| # Write to history file whenever the prompt is displayed | |
| PROMPT_COMMAND='history -a' | |
| # Bind history-search-backward and forward to up and down arrow keys | |
| bind '"\e[A"':history-search-backward | |
| bind '"\e[B"':history-search-forward |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment