fix(zsh): completion unloading direnv

This commit is contained in:
2026-10-05 09:53:25 +02:00
parent a01f86a23c
commit 95ac7bd9de

View File

@@ -96,6 +96,9 @@ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
eval "$(ggman shellrc)" eval "$(ggman shellrc)"
eval "$(starship init zsh)" eval "$(starship init zsh)"
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
# skip direnv in subshells; completion functions cd inside $(...) and trip chpwd
_direnv_hook_toplevel() { (( ZSH_SUBSHELL )) || _direnv_hook }
chpwd_functions=(${(u)chpwd_functions/#%_direnv_hook/_direnv_hook_toplevel})
# gnupg # gnupg
export GPG_TTY=$(tty) export GPG_TTY=$(tty)