]> code.delx.au - dotfiles/commitdiff
bash: don't save lines starting with space to history file
authorJames Bunton <jbunton@atlassian.com>
Tue, 5 Jun 2018 13:31:12 +0000 (23:31 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Tue, 5 Jun 2018 13:32:56 +0000 (23:32 +1000)
.bash/interactive

index 27f54087c577f3c9861ed001f75f4c57bda1f5cc..2606b369aaad57ec019f7b5981642e4214ade580 100644 (file)
@@ -107,7 +107,7 @@ set -o noclobber
 # Better history
 shopt -s histappend
 shopt -s cmdhist
 # Better history
 shopt -s histappend
 shopt -s cmdhist
-export HISTCONTROL="erasedups:ignoredups"
+export HISTCONTROL="erasedups:ignoredups:ignorespace"
 export HISTSIZE="100000"
 export HISTTIMEFORMAT="%F %T "
 
 export HISTSIZE="100000"
 export HISTTIMEFORMAT="%F %T "