Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: have run-help not put itself in history?
- X-seq: zsh-users 14639
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh list <zsh-users@xxxxxxx>
- Subject: Re: have run-help not put itself in history?
- Date: Wed, 09 Dec 2009 20:42:07 +0000
- In-reply-to: Message from Greg Klanderman <gak@xxxxxxxxxxxxxx> of "Wed, 09 Dec 2009 14:23:34 EST." <19231.63798.994576.177282@xxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Greg Klanderman wrote:
> Is there some way to have run-help not put itself into the history?
zshaddhistory() {
[[ $1 != run-help\ * ]]
}
but note that it's always there as the immediately previous command for
reexecuting; it only gets removed when the following command is saved.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author