Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Getting back a command after hitting CTRL-C
- X-seq: zsh-users 12970
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Getting back a command after hitting CTRL-C
- Date: Tue, 17 Jun 2008 14:34:28 +0100
- In-reply-to: <20080617130257.GJ5016@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <2d460de70806170505v24c8d557g146a73d2cd553bab@xxxxxxxxxxxxxx> <237967ef0806170512q29a269ceo799ae02a70dc8f45@xxxxxxxxxxxxxx> <2d460de70806170527m59a16377hb6919bc7ad8f65a3@xxxxxxxxxxxxxx> <237967ef0806170528x3a563ca2i990a642a7d168311@xxxxxxxxxxxxxx> <20080617123812.GG5016@xxxxxxxxxxxxxxx> <20080617124808.GK10734@xxxxxxxxxxxxxxxxxxx> <20080617130257.GJ5016@xxxxxxxxxxxxxxx>
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