Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Selective history
- X-seq: zsh-users 185
- From: Tim Pickett <tbp@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Selective history
- Date: Sat, 16 Mar 1996 12:45:19 +1100 (EST)
- Reply-to: tlm@xxxxxxxxxxxxxxxxxxxxx
You can do simple selective history on particular commands if you have
HIST_IGNORE_SPACE set and then alias certain commands like this:
alias fg=' fg'
Since alias expansion is done before most other things, including
history storage, this will ensure that 'fg' is never inserted into
command history.
Naturally it's not as flexible as using regular expressions or whatever,
but it's a start.
--
Tim Pickett tlm@xxxxxxxxxxxxxxxxxxxxx
"Happy birthday, Eric!" tbp@xxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author