Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Finding the first history event of the current instance
- X-seq: zsh-users 20225
- From: Christian Neukirchen <chneukirchen@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Finding the first history event of the current instance
- Date: Sat, 23 May 2015 16:22:28 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=8tZwSUxuzBRlNHn19rXIedgy28FEnFOOoHuYbCwstLQ=; b=m4ubbF/Au9R4GBIRveKTMgCwC9AM0SWTKJTrxtMJ3z+U7kPonj908QWBVTsQrNFOOu wcatAQRytgXylbDE0C/XzuDTo0o8JL9YzAXN2Nj5dr2586zNY2vvfDID9oqStaebMr+E BcmokRFGioGkC1jWXo5Wavk3lVsi0MisvEg2Ox829qNxbrOaEbtjiN4f/j/T4JLRYF4W UxrYMvb8OhBr1+ZJc4bTgKs96BgiVVyIVavNDaOI9O+SKshOnlMsoRc4EJubpdUq8Xfu abjsAHWnkwoBa9WvAGqUUqWFGwoYnJZfnKzu5cYjaJNhmSw5ripBMO5OgoMdGoVVbfMe PR8Q==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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@xxxxxxxxx> http://chneukirchen.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author