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