From: Mark Wooding Date: Tue, 21 Apr 2020 11:52:16 +0000 (+0100) Subject: dot/zshrc: Hoist history settings above calling `.shell-rc'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/18cc755108a6a909a2af1409de67ea5091a29389?ds=sidebyside dot/zshrc: Hoist history settings above calling `.shell-rc'. This way, `.shell-local' can override the settings. --- diff --git a/dot/zshrc b/dot/zshrc index a43697d..ca76ee4 100644 --- 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