This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: BASH question HISTCONTROL


On Wed, 13 Jun 2001 16:27:26 +0200, Patrick Ohnewein <pohnewein@prodata.it> wrote:
>
> I use 'HISTCONTROL=ignoreboth' and used 'HISTCONTROL=ignoredups' before.
> ignoreboth implies ignoredups, but I am looking for a manner to avoid
> getting a command more than once in my history file (.bash_history),
> ignoredups only avoids multiple CONSEQUENT equal lines.

I intended to answer your request but I found out I have answer for
tcsh not bash since tcsh has been ported to cygwin you might try it.
Add the line:
    set histdup = erase            # save only unique entries
to your .login (or .cshrc if your using tcsh just for interactive
sessions, like I do).

Ehud.


--
 @@@@@@ @@@ @@@@@@ @    @    Ehud Karni                       &yod;&nun;&resh;&qof; &dalet;&vav;&he;&alef;
     @    @      @  @@  @    Senior System Support   &bet;&shin;&het;&mem; &tav;&vav;&kaf;&resh;&ayin;&mem;&bet; &he;&kaf;&yod;&mem;&tav;
     @    @ @    @ @  @@     Mivtach - Simon               &fnun;&vav;&mem;&yod;&samekh; - &het;&tet;&bet;&mem;
     @    @ @    @ @    @    Insurance agencies          &het;&vav;&tet;&bet;&lamed; &tav;&vav;&yod;&vav;&nun;&kaf;&vav;&samekh;
 Better  Safe  Than  Sorry   Tel: +972-3-6212-757  Fax: +972-3-6292-544
 http://www.simonwiesel.co.il        mailto:ehud@unix.simonwiesel.co.il

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]