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.
=============

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