diff --git a/dot_config/zsh/private_dot_zshrc.tmpl b/dot_config/zsh/private_dot_zshrc.tmpl index 064376e16473e4a6fbc05cba9d77f5f15f583de6..67c6daa1b12e26362fbff1f0c7ad5e9c5589dd08 100644 --- a/dot_config/zsh/private_dot_zshrc.tmpl +++ b/dot_config/zsh/private_dot_zshrc.tmpl @@ -126,11 +126,6 @@ export COLUMNS=80 export MANWIDTH=80 export CHARM_HOST=charm.secluded.site -# Configure history file -export HISTFILE="$XDG_STATE_HOME"/zsh/history -export HISTSIZE=1000000 -export SAVEHIST=1000000 - # Partially in response to https://sourcehut.org/blog/2023-01-09-gomodulemirror/ # Partially because GOPROXY bad export GOPROXY=direct @@ -234,6 +229,11 @@ source $XDG_CONFIG_HOME/zsh/completions/antidot.zsh source $XDG_CONFIG_HOME/zsh/completions/atuin.zsh fpath=($XDG_CONFIG_HOME/zsh/completions/ $fpath) +# Configure history file +export HISTFILE="$XDG_STATE_HOME"/zsh/history +export HISTSIZE=1000000 +export SAVEHIST=1000000 + autoload -Uz compinit && compinit autoload -U +X bashcompinit && bashcompinit