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

Re: delay in exitting from zsh shell



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