Web lists-archives.com

Re: go through duplicate commands




On 2019-05-21 10:17, Eric Blake wrote:
> On 5/21/19 11:10 AM, A GS wrote:
>> What about making "up" go through duplicate commands? I think this is the behaviour on some linuxes but I don't know the specifics. That would be neat.
> 
> 'info bash HISTCONTROL'
> 
> It sounds like you are asking for the Cygwin /etc/profile (or the
> skeleton .bashrc file) to be tweaked to add a HISTCONTROL=ignoredups so
> that new installations automatically turn on that feature of bash.  But
> in the meantime, you can modify your own ~/.bashrc to turn it on for
> yourself.

To get the result you probably expect set "HISTCONTROL=ignoreboth:erasedups"

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple