fix(direnv): use hook instead of export (#12000)

This commit is contained in:
Amir Hosseini authored and GitHub committed 2023-10-22 10:30:25 +02:00
1 parent 8428442ff0
commit 465253396d
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@ command -v direnv &>/dev/null || return
_direnv_hook() {
trap -- '' SIGINT;
eval "$(direnv export zsh)";
eval "$(direnv hook zsh)";
trap - SIGINT;
}
typeset -ag precmd_functions;