mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
fix(direnv): use hook
instead of export
(#12000)
This commit is contained in:
parent
8428442ff0
commit
465253396d
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ command -v direnv &>/dev/null || return
|
||||||
|
|
||||||
_direnv_hook() {
|
_direnv_hook() {
|
||||||
trap -- '' SIGINT;
|
trap -- '' SIGINT;
|
||||||
eval "$(direnv export zsh)";
|
eval "$(direnv hook zsh)";
|
||||||
trap - SIGINT;
|
trap - SIGINT;
|
||||||
}
|
}
|
||||||
typeset -ag precmd_functions;
|
typeset -ag precmd_functions;
|
||||||
|
|
Loading…
Reference in a new issue