From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15979 invoked by alias); 18 Nov 2009 13:07:02 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 14581 Received: (qmail 5989 invoked from network); 18 Nov 2009 13:06:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at smasher.org designates 69.55.237.145 as permitted sender) Message-ID: <20091118130016.56247.qmail@smasher.org> cc: Zsh Users Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: Thu, 19 Nov 2009 02:00:21 +1300 (NZDT) From: Atom Smasher In-Reply-To: <20091118122241.GA16098@trustfood.org> MIME-Version: 1.0 OpenPGP: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt References: <20091118122241.GA16098@trustfood.org> Subject: Re: mapping ctrl-D to To: Eric Smith User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-POM: The Moon is Waxing Crescent (4% of Full) X-Hashcash: 1:20:0911181300:es@fruitcom.com::p2F+DwQekC2pqZrJ:000000000000000000 0000000000000000000000001ZE9 X-Hashcash: 1:20:0911181300:zsh-users@zsh.org::BQyfHd4v7rppWCls:0000000000000000 00000000000000000000000025Ap 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