On 04/29/2012 06:15 AM, Peter Gueckel wrote:
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.
http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-l...
Seems to have some nice examples of the various environment variables.
--
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage