HISTCONTROL ignoreboth is ignorespace:ignoredups
dblume

dblume commited on 2025-04-24 14:43:14
Showing 1 changed files, with 1 additions and 1 deletions.


See best_bash_history: https://gist.github.com/ckabalan/7d374ceea8c2d9dd237d763d385cf2aa
and https://www.geeksforgeeks.org/histcontrol-command-in-linux-with-examples/
... ...
@@ -232,7 +232,7 @@ venv() {
232 232
 }
233 233
 
234 234
 # https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
235
-HISTCONTROL=ignoredups:erasedups
235
+HISTCONTROL=ignoreboth:erasedups
236 236
 HISTIGNORE="&:ls:[bf]g:exit:pwd:clear:\:[qw]*:ZZ"
237 237
 #HISTFILESIZE=2000
238 238
 #HISTSIZE=2000
239 239