zsh-users
 help / color / mirror / code / Atom feed
* Selective history
@ 1996-03-16  1:45 Tim Pickett
  0 siblings, 0 replies; only message in thread
From: Tim Pickett @ 1996-03-16  1:45 UTC (permalink / raw)
  To: zsh-users

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@yoyo.cc.monash.edu.au
"Happy birthday, Eric!"                        tbp@molly.cs.monash.edu.au



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-03-16  1:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-03-16  1:45 Selective history Tim Pickett

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).