Created
December 16, 2020 19:07
-
-
Save BrennanBarker/5af75bd78f59ad8b6bf92db041b9fba4 to your computer and use it in GitHub Desktop.
Bash Partial History Completion and Realtime History Updates
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
| # In .inputrc: | |
| ## arrow up | |
| "\e[A":history-search-backward | |
| ## arrow down | |
| "\e[B":history-search-forward | |
| # In .bashrc: | |
| shopt -s histappend | |
| PROMPT_COMMAND="history -a;$PROMPT_COMMAND" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment