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 12963
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Subject: Re: Getting back a command after hitting CTRL-C
- Date: Tue, 17 Jun 2008 14:28:42 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=mjYDKT991NbWgAYoh+jw4Wt0ABvimHXa1AHUuEBYrvA=; b=rg41tUUSnsqXzPXWfrLoemAtrvc1IEgbb2wMl/QceqlPxpkE2D3YrjKC4JxGoBSoU/ MqHzaYRG8dVNwimLiLMYmca+VF62aQO+XXC/uprXyNLjorqZMVvl++bkvbIrVVv8wc4Y kZCfp555cWsDTgVonu2bYHOjectTU/TvyydhE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=TywTOPnjkfdzHRJ5ZkXLcgtJQgcnj9V3O6wfavREyCpbnVUepTy8nWL17PopgXc7bQ GBe2lJqIrJHVw0mdKII4G1SBoxRlhQt3hEwjriPQCVi/pPgglxHFGBCtuP9wwB5b6LCk wrVZ+nYib1VwDusV3HVfq8g6HAvRXgq7DoWJs=
- In-reply-to: <2d460de70806170527m59a16377hb6919bc7ad8f65a3@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70806170505v24c8d557g146a73d2cd553bab@xxxxxxxxxxxxxx> <237967ef0806170512q29a269ceo799ae02a70dc8f45@xxxxxxxxxxxxxx> <2d460de70806170527m59a16377hb6919bc7ad8f65a3@xxxxxxxxxxxxxx>
2008/6/17 Richard Hartmann <richih.mailinglist@xxxxxxxxx>:
> On Tue, Jun 17, 2008 at 14:12, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
>
>> Bind kill-whole-line to some key and press that instead of ctrl-c, then
>> you can get it back with a yank. If you have a hard time not pressing ctrl-c,
>> try:
>> trap true SIGINT
>
> 5 minutes with the trap show I can't cope with that enabled :p
> Unfortunately, binding kill-whole-line to ^c does not work, so that is not
> an option either.
Well, that is the idea, every time it annoys you, you remember to use
the other keybinding instead :). You can of course change the interrupt
key with stty, but then you won't be able to interrupt actual commands with
ctrl-c anymore.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author