Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| qnd:bash_configuration [2023/01/12 16:43] – mgupton | qnd:bash_configuration [2023/03/31 11:34] (current) – mgupton | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| # | # | ||
| shopt -s histverify | shopt -s histverify | ||
| - | export HISTIGNORE=" | + | # Exclude things from being saved in history | 
| + | export HISTIGNORE=" | ||
| # Prevent duplicate entries | # Prevent duplicate entries | ||
| export HISTCONTROL=ignoreboth: | export HISTCONTROL=ignoreboth: | ||
| Line 37: | Line 38: | ||
| alias hg=' | alias hg=' | ||
| alias nn=' | alias nn=' | ||
| + | alias ha=' | ||
| + | alias hs=' | ||
| </ | </ | ||
| Line 43: | Line 46: | ||
| # Handle saving history with multiple shells | # Handle saving history with multiple shells | ||
| # After each command, append to the history file and reread it | # After each command, append to the history file and reread it | ||
| + | # Ref: https:// | ||
| PROMPT_COMMAND=" | PROMPT_COMMAND=" | ||
| </ | </ | ||