Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: mapping ctrl-D to <ctrl-W ctrl-D>



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