Remove accidental vim commands from bash history
dblume

dblume commited on 2024-11-27 11:36:29
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -233,7 +233,7 @@ venv() {
233 233
 
234 234
 # https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
235 235
 HISTCONTROL=ignoredups:erasedups
236
-HISTIGNORE="&:ls:[bf]g:exit:pwd:clear"
236
+HISTIGNORE="&:ls:[bf]g:exit:pwd:clear:\:[qw]*:ZZ"
237 237
 #HISTFILESIZE=2000
238 238
 #HISTSIZE=2000
239 239
 # [ $(wc -l < $HOME/.bash_history) -gt 950 ] && echo "David, your .bash_history is over 950 lines. Consider updating your .bashrc."
240 240