bash history

Peter Gueckel pgueckel at gmail.com
Sat Apr 28 22:15:57 UTC 2012


Andy Blanchard wrote:

> HISTIGNORE only deals with consecutive duplicates, IIRC.
> 
> What you want is:
> 
>    export HISTCONTROL=erasedups
> 
> you might also want to add ":ignorespace" to the end of that.  That will
> cause any command prefixed by a space to be ignored as well - very useful
> for those long commands that you will only ever run once!

Thanks. I will change it.



More information about the users mailing list