X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/ad8b383d21775f621bab9a72a76413fc9fdd00ef..b1370ab382637f6767382c54d8e97fb8f0895a0a:/.zsh/zshrc/80_history?ds=sidebyside

diff --git a/.zsh/zshrc/80_history b/.zsh/zshrc/80_history
index 48a161a..d32d4ea 100644
--- a/.zsh/zshrc/80_history
+++ b/.zsh/zshrc/80_history
@@ -1,4 +1,4 @@
-# zshrc/90_history
+# zshrc/80_history
 #
 # Set up command line history functions
 #
@@ -8,8 +8,9 @@
 # Source repository: http://git.madduck.net/v/etc/zsh.git
 #
 
-DEFAULT_HISTFILE=$ZVAR/history
-HISTFILE=$DEFAULT_HISTFILE
+# typeset -g on this one to make warn_create_global happy
+typeset -g HISTFILE=$ZVARDIR/history-$HOST
+[[ -e $ZVARDIR/history ]] && mv $ZVARDIR/history $HISTFILE
 HISTSIZE=10000
 SAVEHIST=$HISTSIZE
 LISTMAX=1000