On 5/10/05, Lan Barnes <[EMAIL PROTECTED]> wrote:
> On Tue, May 10, 2005 at 09:47:51AM -0700, Ralph Shumaker wrote:
> > Comman history (rh9) shows every command where I hit return, even if I
> > just arrowed up to the previous command.
> >
> > Is there a way to get it to automatically throw out previous lines of
> > exact matches? If I use "eject whatever" a lot, I don't care about any
> > instance of that prior to the most recent one. I'll scroll up to that
> > one and hit enter. I don't care much for scrolling through 47 of them
> > to find something obscure that may even have been scrolled out because
> > of all the repeat commands.
> >
>
> Pipe it to tail?
I think you answered the wrong question. The real answer can be found
in $ man bash
HISTCONTROL
If set to a value of ignorespace, lines which begin with a space
character are not entered on the history list. If set to a
value of ignoredups, lines matching the last history line are
not entered. A value of ignoreboth combines the two options.
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list