Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: delay in exitting from zsh shell
- X-seq: zsh-users 16567
- From: Eugene Dzhurinsky <jdevelop@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: delay in exitting from zsh shell
- Date: Thu, 10 Nov 2011 08:56:44 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=date:from:to:subject:message-id:mail-followup-to:references         :mime-version:content-type:content-disposition:in-reply-to         :user-agent;        bh=PRc7ilrcANWB6nfvXviNW98moWsYviXCS8WFS9/bWik=;        b=MS1QZIQBUNdP0yF7osL8foxnzjqnDbyHOwVAIXBR9u1mPgvAEGBZ5Gpo8dV6gdZApJ         4JOfDjVloiX+LNYNM0gvFlVR9hAYGh+aCAIjn4rHXbQyHMRHjQzWQSvnqEmgviDIaNPE         9a2YbXMeLEdaTgQrf/2sob40J0wRk31wwepjc=
- In-reply-to: <CADkz2MDwCrgdW=Jw58Nnx3nZLprUL4SToy9+hsCxBR-vUzJqqw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20111109222020.GB10120@devbox> <CADkz2MDwCrgdW=Jw58Nnx3nZLprUL4SToy9+hsCxBR-vUzJqqw@mail.gmail.com>
On Thu, Nov 10, 2011 at 09:14:02AM +0800, Rommel Martinez wrote:
> You can have something like this:
> 
> function bye () {
>     if (( ! $#BUFFER )); then
>         SAVEHIST=0
>         exit
>     else
>         zle delete-char-or-list
>     fi
> }
> 
> zle -N bye
> bindkey "^D" bye
Well, because most time I do have some commands executed - that wouldn't help
much :)
-- 
Eugene N Dzhurinsky
Attachment:
pgpBmjv0DMxAT.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author