2 ms·
Because HISTCONTROL=ignoredups only deduplicates sequential commands, and having my own script allows specification of the blacklist in a non-redundant way betw
by naggie 6y ago
Because HISTCONTROL=ignoredups only deduplicates sequential commands, and having my own script allows specification of the blacklist in a non-redundant way between zsh and bash.
In addition, I can do it in such a way that the most recent invocation is deleted last. I can also use regexes.
See https://github.com/naggie/dotfiles/blob/master/scripts/cleanup-history#L11 https://github.com/naggie/dotfiles/blob/master/scripts/clean... for more reasoning.
- MachineGunPablo 6y agozsh, HISTORY_IGNORE is a regex what are you talking about... and there is history_ignore_all_dups so I'm really not following...
- naggie 6y agoNot in bash. Like I said, I use bash (and sometimes ZSH)