Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tip of the day: restoring an aborted command-line
- X-seq: zsh-users 20304
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Tip of the day: restoring an aborted command-line
- Date: Fri, 03 Jul 2015 11:49:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1435938575; bh=QzDena1B2nccG29ognHj1cyoQbazh57XZ3swTubjlBM=; h=Received:Received:Received:Received:From:To:Subject:Reply-To:Date: Message-ID:MIME-Version:Content-Type; b=GTE0IPN7p/hztSVc/jz7N0PnPSootZtRzpVBlQJ4FM3O7INZBkLy6N9yG/cLZdqCK hbLk7MEOTtDDUBTjp++0czMAm3wVSWCwaqFP1R6Jduy7ZjJSKCamclcLdq7X3CNLrw ZJVrA+FbsQQ8w99YKV9OK/2gSkU9GUPq0kd9on6xX0ocmmGYjuT4FQJZqqn8Br1EpK d4lClznBMYfp5V369XKKHgj1Lb1ZfW4ce1fxqjDsXAv/tejpksy6qW6rlUcLpDXEQx 9BPx7nVmnYwZZxC4hzCOMjZWhet1LWOs+nKD7kRC6esADEbtaD7Ru82k9kqJx/BL0n 7Qtazz2LCBVKg==
- In-reply-to: <30469.1435788779@thecus.kiddle.eu> (Oliver Kiddle's message of "Thu, 02 Jul 2015 00:12:59 +0200")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <30469.1435788779@thecus.kiddle.eu>
- Reply-to: Greg Klanderman <gak@xxxxxxxxxxxxxx>
Alternately, you can add the aborted command to the kill buffer:
zle-line-init () {
if [[ -n ${ZLE_LINE_ABORTED-} ]] ; then
zle copy-region-as-kill "$ZLE_LINE_ABORTED"
unset ZLE_LINE_ABORTED
fi
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author