Re:OpenBSD will shut down if we do not have the funding to k...
by chongli on Thursday January 16, 2014 @05:37PM
(#7072990)
The shell history really ought to have some sort of de-dupe feature. Too many lines of history get taken up by duplicate entries!
[ Parent
| on HN ]
Re:OpenBSD will shut down if we do not have the funding to k...
by m0shen on Thursday January 16, 2014 @06:02PM
(#7073108)
Use HISTCONTROL=erasedups in your .bashrc
http://www.gnu.org/software/bash/manual/bashref.html#index-H...
Re:OpenBSD will shut down if we do not have the funding to k...
by zshhasoptions on Thursday January 16, 2014 @06:27PM
(#7073205)
try adding setopt HIST_SAVE_NO_DUPS to your .zshrc
you could also have a look at HIST_FIND_NO_DUPS and HIST_IGNORE_ALL_DUPS (more options at http://zsh.sourceforge.net/Doc/Release/Options.html )
If you still use bash, now is a good time to upgrade to zsh