From: Christian Neukirchen <chneukirchen@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: Finding the first history event of the current instance
Date: Fri, 05 Jun 2015 10:47:27 +0200 [thread overview]
Message-ID: <87a8weczj4.fsf@gmail.com> (raw)
In-Reply-To: <150529171657.ZM15077__24226.5334389687$1432945137$gmane$org@torch.brasslantern.com> (Bart Schaefer's message of "Fri, 29 May 2015 17:16:57 -0700")
Bart Schaefer <schaefer@brasslantern.com> writes:
> On May 23, 4:22pm, Christian Neukirchen wrote:
> }
> } 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.
>
> I presume this means you have INC_APPEND_HISTORY but not SHARE_HISTORY.
Exactly. I just realized this already landed in zsh 5.0.8, sorry I
could not test it before.
It doesn't seem to work here:
juno ~% zsh
juno ~% fc -L -l
8986 history -iDL
8987 man zshall
8988 zman history
8989 fc -liD
8990 fc -liDL
8991 fc -liD -L
8992 fc -lL
8993 fc -lLI
8994 zman fc
8995 fc -L -l
8996 fc -l
8997 date
8998 fc -l
8999 fc -l -L
9000 less .zshrc
9001 zsh
I'd have expected it to print nothing, because the local shell history
is empty?
--
Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org
next prev parent reply other threads:[~2015-06-05 9:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87r3q7nzkr.fsf@gmail.com>
[not found] ` <150529171657.ZM15077@torch.brasslantern.com>
[not found] ` <150530154236.ZM17511@torch.brasslantern.com>
2015-05-31 9:29 ` Oliver Kiddle
2015-05-31 23:59 ` Bart Schaefer
2015-06-01 1:50 ` Mikael Magnusson
2015-06-01 4:02 ` Bart Schaefer
[not found] ` <150529171657.ZM15077__24226.5334389687$1432945137$gmane$org@torch.brasslantern.com>
2015-06-05 8:47 ` Christian Neukirchen [this message]
2015-06-06 16:54 ` 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=87a8weczj4.fsf@gmail.com \
--to=chneukirchen@gmail.com \
--cc=zsh-workers@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).