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 12959
- 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:12: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=CGJmpID4iKWpnu5dxVeCiYu+G5E5Wd/bNLuoPCshlAY=; b=u6z47UiHxAb7qhsSLNRtxoa1lV8hU+HNFSl86WzbdlUnOg+76yreSkjXrFvd9JDPWc DRiqdCEwANBxnmTUnkxVrZglHCrOnPKQ7HDE73lW20KXY/eBAOBT9CHfSC7d99s1cnjk zgc9dwt24cWXJpIuSV9BLZx67VgCm5lfnyqXM=
- 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=EMPaZaBd1yZA+ahlro+Msx0ZfaniE2gLErjeZzRpibra65X3ioLZjIhCFxudmTm/Pi YyIU2eXCncHb+ZrKgfnNVBfanlfL83y3fyI0fkmuCNSn8SGNBY4+BvKzeaXEXAhhx9Wc RtQJMKK0xeHz6+ES8r2pY0JG0FnwvM+boxxSg=
- In-reply-to: <2d460de70806170505v24c8d557g146a73d2cd553bab@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70806170505v24c8d557g146a73d2cd553bab@xxxxxxxxxxxxxx>
2008/6/17 Richard Hartmann <richih.mailinglist@xxxxxxxxx>:
> Hi,
>
> somtimes, I will start typing a command, realize I do not want to execute
> it, hit CTRL-C, only to realize I would have saved a lot of typing if I
> had instead modified it. What I would love to see is a feature that
> holds onto the last buffer content and revives it into ZLE, so to speak.
>
> I am aware of the command stack feature and I am using it to move
> commands I do not want to execute _yet_ out of the way. I am
> specifically asking for something that could help when the milk is
> spilt, so to speak.
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
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author