[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Keep things from history
- Subject: [ale] Keep things from history
- From: ale-at-ale.org at unpopularminds.org (The Don Lachlan)
- Date: Sat, 14 May 2011 12:08:20 -0400
- In-reply-to: <1305387056.2113.3.camel@cfowler-desktop>
- References: <1305387056.2113.3.camel@cfowler-desktop>
On Sat, May 14, 2011 at 11:30:56AM -0400, Chris Fowler wrote:
> Interesting thing I found in bash a while back and noticed it again
> today.
> If you put a space before the command it will not be stored in bash's
> history.
Correction: Bash can be *told* to do that.
If you look at your HISTFILE env variable, you'll find "[ ]*" as one of the
colon-separated elements. That's why it ignores commands that start with a
space and why it won't necessarily work everywhere - it has to be set up.
This is mine:
HISTIGNORE="&:ls:cd:[bf]g:[ ]*"
-L