Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: mapping ctrl-D to <ctrl-W ctrl-D>
- X-seq: zsh-users 14582
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: Eric Smith <es@xxxxxxxxxxxx>
- Subject: Re: mapping ctrl-D to <ctrl-W ctrl-D>
- Date: Thu, 19 Nov 2009 02:01:38 +1300 (NZDT)
- Cc: Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <20091118122241.GA16098@xxxxxxxxxxxxx>
- 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
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <20091118122241.GA16098@xxxxxxxxxxxxx>
On Wed, 18 Nov 2009, Eric Smith wrote:
What is a nice clean way to do this mapping? To absolutely close a shell
even if spaces or words on this line.
=============
actually...
kill-it-all () {
exit
}
zle -N kill-it-all
bindkey '^D' kill-it-all
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"There can be no greater good than the quest for peace,
and no finer purpose than the preservation of freedom."
-- U.S. President Ronald Reagan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author