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 14581
- 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:00:21 +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.
============
kill-it-all () {
zle && zle .kill-whole-line
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
-------------------------------------------------
"States of war are also understood to require the opposition
in the legislature to moderate its otherwise essential
functions of criticism. Calls are issued to stand behind
the political leadership and to display unity, with the
implication that the enemy is watching and that failure to
unite is tantamount to treason. These are not healthy
conditions for a democracy; indeed, they are the opposite of
democracy."
-- Philip E. Agre, Department of Information Studies,
University of California, Los Angeles
Messages sorted by:
Reverse Date,
Date,
Thread,
Author