Skip to content

Instantly share code, notes, and snippets.

@BrennanBarker
Created December 16, 2020 19:07
Show Gist options
  • Select an option

  • Save BrennanBarker/5af75bd78f59ad8b6bf92db041b9fba4 to your computer and use it in GitHub Desktop.

Select an option

Save BrennanBarker/5af75bd78f59ad8b6bf92db041b9fba4 to your computer and use it in GitHub Desktop.
Bash Partial History Completion and Realtime History Updates
# 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