From: "Richard Hartmann" <richih.mailinglist@gmail.com>
To: "Bart Schaefer" <schaefer@brasslantern.com>
Cc: "zsh users" <zsh-users@sunsite.dk>
Subject: Re: Editing history stack during runtime?
Date: Fri, 29 Feb 2008 20:42:04 +0100 [thread overview]
Message-ID: <2d460de70802291142u4bdf7c94qa330ff9dad1324f0@mail.gmail.com> (raw)
In-Reply-To: <080229084310.ZM17549@torch.brasslantern.com>
On Fri, Feb 29, 2008 at 5:43 PM, Bart Schaefer
<schaefer@brasslantern.com> wrote:
> 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
history.
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 :)
Thanks,
Richard
next prev parent reply other threads:[~2008-02-29 19:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-29 1:09 Richard Hartmann
2008-02-29 16:43 ` Bart Schaefer
2008-02-29 19:42 ` Richard Hartmann [this message]
2008-03-01 3:22 ` Bart Schaefer
2008-03-01 10:38 ` Richard Hartmann
2008-03-01 12:59 ` Bart Schaefer
2008-03-03 12:25 ` Richard Hartmann
2008-03-03 16:30 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2d460de70802291142u4bdf7c94qa330ff9dad1324f0@mail.gmail.com \
--to=richih.mailinglist@gmail.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).