chiark / gitweb /
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 a43697d1d60870a4001c509b02b5073b80ab0bf0..ca76ee43dd2f7a7e747815b9bc874205fcd45e85 100644 (file)
--- a/dot/zshrc
+++ b/dot/zshrc
@@ -5,6 +5,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.
 
@@ -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