From: Maarten Grachten <maarten.grachten@gmail.com>
To: zsh-users@zsh.org
Subject: search through alternative HISTFILE
Date: Fri, 02 Aug 2013 12:38:43 +0200 [thread overview]
Message-ID: <51FB8C33.30108@gmail.com> (raw)
Dear zsh users,
As part of an attempt to archive my command line history, I have a need
for bck-i-search (as normally invoked by Ctrl-R), but with a history
file that is not $HISTFILE, that is, a different file from that which
the current shell uses for saving its history.
As I envision it, Ctrl-R would still search through the current shell's
history (i.e. through $HISTFILE), and another key binding would search
through an alternative but constant histfile (say
$HOME/.accumulated-history).
Is this possible, and if so, can any of you give me a hint as to how to
achieve it?
Many thanks in advance!
Maarten
next reply other threads:[~2013-08-02 10:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-02 10:38 Maarten Grachten [this message]
2013-08-02 11:08 ` Peter Stephenson
2013-08-05 10:05 Maarten Grachten
2013-08-05 18:52 ` Peter Stephenson
2013-08-06 9:55 Maarten Grachten
2013-08-06 10:11 Maarten Grachten
2013-08-06 11:05 ` Peter Stephenson
2013-08-06 14:09 Maarten Grachten
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=51FB8C33.30108@gmail.com \
--to=maarten.grachten@gmail.com \
--cc=zsh-users@zsh.org \
/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).