move compinit before loading of local env files

This commit is contained in:
Daniel Bauer
2026-05-07 09:43:57 +02:00
parent 79f124d1be
commit 863f26d50c

View File

@@ -5,6 +5,8 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
autoload -U +X compinit && compinit # fix compdef not found
if [ -f $HOME/.zshrc_local ]; then
source $HOME/.zshrc_local
fi
@@ -26,8 +28,6 @@ if [ -f $LOCAL_ALIAS_FILE ]; then
source $LOCAL_ALIAS_FILE
fi
autoload -U +X compinit && compinit # fix compdef not found
# configure oh-my-zsh/nvm for lazy loading nvm
zstyle ':omz:plugins:nvm' lazy yes
zstyle ':omz:plugins:nvm' autoload yes