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

master
Amir Hosseini 2 years ago committed by GitHub
parent 8428442ff0
commit 465253396d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugins/direnv/direnv.plugin.zsh

@ -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;

Loading…
Cancel
Save