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

Re: Getting back a command after hitting CTRL-C



On Tue, 17 Jun 2008 14:02:57 +0100
Stephane Chazelas <Stephane_Chazelas@xxxxxxxx> wrote:
> trap 'zle && zle kill-buffer && zle -R' INT

You might want

trap 'zle && [[ -z $curcontext ]] && zle kill-buffer && zle -R' INT

to avoid the completion system.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author