zsh-users
 help / color / mirror / code / Atom feed
* Finding the first history event of the current instance
@ 2015-05-23 14:22 Christian Neukirchen
  2015-05-30  0:16 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Neukirchen @ 2015-05-23 14:22 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-30 22:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-23 14:22 Finding the first history event of the current instance Christian Neukirchen
2015-05-30  0:16 ` Bart Schaefer
2015-05-30 22:42   ` Bart Schaefer

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).