summaryrefslogtreecommitdiff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2013-10-17 10:14:25 +0100
committerPeter Stephenson <pws@zsh.org>2013-10-17 10:14:25 +0100
commit73ececfd01bc137366d25940d90a34aaa2cdb02e (patch)
treedb9a9969a06a81fe1efafa38829e6e1a44f5eddc /Src/zsh.h
parenta8f736b4cf8d186af4aea6f48ae7a5335d9ad8bb (diff)
downloadzsh-73ececfd01bc137366d25940d90a34aaa2cdb02e.tar.gz
zsh-73ececfd01bc137366d25940d90a34aaa2cdb02e.zip
31830: New feature for zshaddhistory hooks.
If the first non-zero return status is 2, save the line on the internal history list, but don't write it out.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index a46898d7d..a935d23ad 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1894,6 +1894,7 @@ struct histent {
#define HIST_DUP 0x00000008 /* Command duplicates a later line */
#define HIST_FOREIGN 0x00000010 /* Command came from another shell */
#define HIST_TMPSTORE 0x00000020 /* Kill when user enters another cmd */
+#define HIST_NOWRITE 0x00000040 /* Keep internally but don't write */
#define GETHIST_UPWARD (-1)
#define GETHIST_DOWNWARD 1