dot/zshrc: Hoist history settings above calling `.shell-rc'.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 21 Apr 2020 11:52:16 +0000 (12:52 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 21 Apr 2020 11:52:16 +0000 (12:52 +0100)
This way, `.shell-local' can override the settings.

dot/zshrc

index a43697d..ca76ee4 100644 (file)
--- a/dot/zshrc
+++ b/dot/zshrc
@@ -6,6 +6,15 @@ __mdw_shell=zsh
 case ${INSIDE_EMACS+t},$TERM in t,dumb) unsetopt zle ;; esac
 
 ###--------------------------------------------------------------------------
+### History settings.
+
+## Put this here so that `.shellrc-local' can override.
+
+HISTFILE=~/.zsh-history
+HISTSIZE=1000
+SAVEHIST=1000
+
+###--------------------------------------------------------------------------
 ### Common shell configuration.
 
 . "$HOME/.shell-rc"
@@ -135,10 +144,6 @@ compdef _ssh @
 ###--------------------------------------------------------------------------
 ### Other shell tweaking.
 
-HISTFILE=~/.zsh-history
-HISTSIZE=1000
-SAVEHIST=1000
-
 unsetopt auto_cd
 unsetopt auto_menu
 setopt bang_hist