Warren Mansur wrote:
> Hi,
>
> A simple question. Does anyone know offhand how to make bash only
> remember unique commands in your history? For example, if I type:
>
> command1
> command1
> command2
>
> and then I hit the up-arrow, I'll see those three commands in order. I
> was hoping to have it show me "command2" once, and "command1" once, and
> eliminate the duplicate.
>
> Thanks.
>
> --
> Warren Mansur
> Reliable Transaction Router
> email: [EMAIL PROTECTED]
> phone: 603-884-5435
>
> **********************************************************
> To unsubscribe from this list, send mail to
> [EMAIL PROTECTED] with the following text in the
> *body* (*not* the subject line) of the letter:
> unsubscribe gnhlug
> **********************************************************
you could set up your env so "uqhistory command" would invoke something
like
history -100 | grep $command | sort -u
or just
history | sort -u | grep command
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************