Re: bash history



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-line-history

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
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Relevant Pages

  • Re: no graphic
    ... Never be afraid to laugh at yourself, after all, you could be missing out on the joke of the century. ... -- Dame Edna Everage ... To unsubscribe or change subscription options: ...
    (Fedora)
  • Re: Execution of /etc/rc.d/rc.local
    ... Geoffrey Leach wrote: ... -- Dame Edna Everage ... To unsubscribe or change subscription options: ...
    (Fedora)
  • Re: eject command fails to eject cd
    ... # You can modify it, as long as you keep each rule on a single ... -- Dame Edna Everage ... To unsubscribe or change subscription options: ...
    (Fedora)
  • Re: USER SHOULD BE UNSUBSCRIBED
    ... -- Dame Edna Everage ... To unsubscribe or change subscription options: ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines ...
    (Fedora)
  • Re: selective command history
    ... Set HISTCONTROL to "ignorespace" to achieve the above. ... To unsubscribe or change subscription options: ...
    (Fedora)