Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Finding the first history event of the current instance
- X-seq: zsh-workers 35391
- From: Christian Neukirchen <chneukirchen@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Finding the first history event of the current instance
- Date: Fri, 05 Jun 2015 10:47:27 +0200
- 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")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <87r3q7nzkr.fsf@gmail.com> <150529171657.ZM15077__24226.5334389687$1432945137$gmane$org@torch.brasslantern.com>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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@xxxxxxxxx> http://chneukirchen.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author