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 14641
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: have run-help not put itself in history?
- Date: Thu, 10 Dec 2009 20:57:11 -0500
- In-reply-to: <733654e30912091738j726992bcvf95c313b28c4babb@xxxxxxxxxxxxxx> (Wayne Davison's message of "Wed, 9 Dec 2009 17:38:04 -0800")
- 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
- References: <19231.63798.994576.177282@xxxxxxxxxxxxxxxxxx> <733654e30912091738j726992bcvf95c313b28c4babb@xxxxxxxxxxxxxx>
- Reply-to: gak@xxxxxxxxxxxxxx
Thank you Peter and Wayne.. I'd really prefer that run-help entry not
be there even as the immediately previous command. If I quit out of
run-help and hit up-arrow something I didn't type is there in my
history. Is there really no way get rid of it entirely? I'd argue
that should be the default behavior - would anyone ever want to re-run
that command? It's merely an artifact of how run-help is implemented.
Hmm after perusing the manual and playing around a bit, this seems to
do the trick:
zshaddhistory () {
[[ $1 != run-help\ * ]] || fc -p
}
but maybe I've missed something?
Oh run-help doesn't work so well if you're editing a continued
line.. maybe processcmd() should do pushinput() rather than
pushline()?
thanks,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author