>A simple question. Does anyone know offhand how to
>make bash only remember unique commands in your history?
The following environment variables do it:
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.
If unset, or if set to any other value than those
above, all lines read by the parser are saved on the
history list, subject to the value of HISTIGNORE.
This variable's function is superseded by HISTIGNORE.
HISTIGNORE
A colon-separated list of patterns used to decide
which command lines should be saved on the history
list. Each pattern is anchored at the beginning of
the line and must fully specify the line (no implicit
`*' is appended). Each pattern is tested against
the line after the checks specified by HISTCONTROL
are applied. In addition to the normal shell
pattern matching characters, `&' matches the previous
history line. `&' may be escaped using a backslash.
The backslash is removed before attempting a match.
There are others, too - RTFM (where I found these)
**********************************************************
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
**********************************************************