projects
/
zsh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb29e2
)
use per-host history files
author
martin f. krafft
<madduck@madduck.net>
Thu, 22 May 2008 18:07:36 +0000
(20:07 +0200)
committer
martin f. krafft
<madduck@madduck.net>
Thu, 22 May 2008 18:07:36 +0000
(20:07 +0200)
.zsh/zshrc/80_history
patch
|
blob
|
history
diff --git
a/.zsh/zshrc/80_history
b/.zsh/zshrc/80_history
index af0f93b44a784146583027ff341db795fc42c1e8..d32d4eadebb87b9673cfb5c425bcb337d454f826 100644
(file)
--- a/
.zsh/zshrc/80_history
+++ b/
.zsh/zshrc/80_history
@@
-9,7
+9,8
@@
#
# typeset -g on this one to make warn_create_global happy
-typeset -g HISTFILE=$ZVARDIR/history
+typeset -g HISTFILE=$ZVARDIR/history-$HOST
+[[ -e $ZVARDIR/history ]] && mv $ZVARDIR/history $HISTFILE
HISTSIZE=10000
SAVEHIST=$HISTSIZE
LISTMAX=1000