Zsh Mailing List Archive
Messages sorted by:
Re: Editing history stack during runtime?
- X-seq: zsh-users 12662
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Editing history stack during runtime?
- Date: Fri, 29 Feb 2008 20:42:04 +0100
- Cc: "zsh users" <zsh-users@xxxxxxxxxx>
- 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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=TEhBeEWwdZnYyigTBF8J8+8L1/5tt/zuOg+/jLQnVFw=; b=Mo7X03QDz031/5noyrmkOdmbc3w2OAEXMP0h5Fm8U63zsLk+OTpTjaajql29y648NU7yuKzcUs709phUH34EU18zgaFUhUbMK52GJzhqbWX4/W5AQSoU6HVGPeSlx8QTyMK8y63/sydN9+pRGOu8d5HsLgPwJ2Hw3bDw2Gqt9+c=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MKaezvcrRLvSfJWKXKW23DqmORlV5WYgdyB0GF6Tf0Z3GnF0n2k7yM+e5Pq6nHLEhAa6xG8TU1Yhqy08rIdYkXNnqGN/6zCSonbgLUVSN9VmuBbBDMFshZ3Dwgv5rT/2kw77IdiRjJz78PsG3tKgzCz10vRktdMYJk9zMCKzK64=
- In-reply-to: <080229084310.ZM17549@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70802281709n1847611cp6cb9a5273e212bae@xxxxxxxxxxxxxx> <080229084310.ZM17549@xxxxxxxxxxxxxxxxxxxxxx>
On Fri, Feb 29, 2008 at 5:43 PM, Bart Schaefer
> There are a couple of different things you might mean by this, so I'm
> not sure how to answer.
I want to take the session history, i.e. what was typed since last login,
and edit that. Then, I want whatever I save to replace the session
Histories of other shells or in files should not be affected in any way.
> Then there are the added complications of EXTENDED_HISTORY, which puts
> things in $HISTFILE you have to be careful about editing (it's still
> all just text, though). You can arrange to strip those so that you
> can edit without breaking anything, but then when you rewrite the file
> you'll lose all that information.
It is probably easiest to just put it into $EDITOR with the commands.
I am using EXTENDED_HISTORY, but I don't mind the information
in my Vim. If all else fails, blockwise select & remove :)
Messages sorted by: