From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24967 invoked from network); 13 Feb 1997 23:33:53 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 13 Feb 1997 23:33:53 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA00743; Thu, 13 Feb 1997 18:29:03 -0500 (EST) Resent-Date: Thu, 13 Feb 1997 18:10:03 -0500 (EST) Sender: gjb@cs.washington.edu To: schaefer@nbn.com Cc: zsh-users@math.gatech.edu Subject: Re: How to make APPENDHISTORY useful? References: <970213142920.ZM22919@candle.brasslantern.com> From: Greg Badros Date: 13 Feb 1997 15:12:00 -0800 In-Reply-To: "Bart Schaefer"'s message of Thu, 13 Feb 1997 14:29:20 -0800 Message-ID: X-Mailer: Gnus v5.4.11/Emacs 19.34 Resent-Message-ID: <"ryDg43.0.95.Bzv0p"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/676 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu I've been thinking about this too. What would be useful is to have an option or mechanism to grep out only the "interesting" lines from the history before saving them. "Interesting" might mean a regular expression; even more useful would be a way to keep the last couple of executions of each command name (sometimes if I haven't used a command, a good example from an earlier use [while I was looking at the man page] is all I need). Also "interesting" could be any pipeline, or multi-part command. This might be almost doable within the current framework, though still having the problem about when to do the trimming down of the history. Greg