zsh-users
 help / color / mirror / code / Atom feed
From: Tim Pickett <tbp@cs.monash.edu.au>
To: zsh-users@math.gatech.edu
Subject: Selective history
Date: Sat, 16 Mar 1996 12:45:19 +1100 (EST)	[thread overview]
Message-ID: <199603160145.MAA09595@molly.cs.monash.edu.au> (raw)

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



                 reply	other threads:[~1996-03-16  1:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199603160145.MAA09595@molly.cs.monash.edu.au \
    --to=tbp@cs.monash.edu.au \
    --cc=tlm@yoyo.cc.monash.edu.au \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).