This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: BASH question HISTCONTROL
- To: "Patrick Ohnewein" <pohnewein at prodata dot it>
- Subject: Re: BASH question HISTCONTROL
- From: "Ehud Karni" <ehud at unix dot simonwiesel dot co dot il>
- Date: Wed, 13 Jun 2001 23:07:30 +0300
- CC: cygwin at cygwin dot com
- Organization: Simon & Wiesel Insurance agency
- References: <3B27784E.5000508@prodata.it>
- Reply-to: ehud at unix dot simonwiesel dot co dot il
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