From: Christian Neukirchen <chneukirchen@gmail.com>
To: zsh-users@zsh.org
Subject: Finding the first history event of the current instance
Date: Sat, 23 May 2015 16:22:28 +0200 [thread overview]
Message-ID: <87r3q7nzkr.fsf@gmail.com> (raw)
Hi,
I use INC_APPEND_HISTORY, so every shell instance keeps its own local
history and writes it the the global history file as well.
Thus, "history" will in general only list the commands I typed into
this instance, except if the line is too old and was read from the file.
How can I list *only* the history lines that I typed into the current
session? For this, it would be enough to find the first event of the
new instance, but $HISTCMD is not set at .zshrc yet.
Thanks,
--
Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org
next reply other threads:[~2015-05-23 14:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-23 14:22 Christian Neukirchen [this message]
2015-05-30 0:16 ` Bart Schaefer
2015-05-30 22:42 ` 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=87r3q7nzkr.fsf@gmail.com \
--to=chneukirchen@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).