chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c1c7c8e
)
dot/zshrc: Tweak history handling.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 8 Aug 2017 00:50:58 +0000
(
01:50
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 8 Aug 2017 01:00:25 +0000
(
02:00
+0100)
Keep shell histories synchronized. Elide duplicate entries.
dot/zshrc
patch
|
blob
|
blame
|
history
diff --git
a/dot/zshrc
b/dot/zshrc
index 3ed1bd9b7a8873c09f39fc842bd978a40c652a81..799302534a461ac429a1bfc403d7d2aac2d29fa0 100644
(file)
--- a/
dot/zshrc
+++ b/
dot/zshrc
@@
-114,18
+114,19
@@
HISTFILE=~/.zsh-history
HISTSIZE=1000
SAVEHIST=1000
-setopt appendhistory
unsetopt auto_cd
unsetopt auto_menu
unsetopt bash_auto_list
unsetopt beep
setopt extendedglob
+setopt hist_ignore_all_dups
setopt ksh_glob
setopt list_ambiguous
setopt list_packed
unsetopt nomatch
unsetopt menu_complete
setopt notify
+setopt share_history
zshaddhistory () {
case "$1" in