Remove hardcoded Direnv setup, since zeval can handle it
This commit is contained in:
parent
73ee5d18d6
commit
f726ccc185
1 changed files with 0 additions and 12 deletions
|
@ -1,12 +0,0 @@
|
||||||
#! zsh
|
|
||||||
_direnv_hook() {
|
|
||||||
trap -- '' SIGINT
|
|
||||||
emulate zsh -c "$(direnv export zsh)"
|
|
||||||
trap - SIGINT
|
|
||||||
}
|
|
||||||
|
|
||||||
typeset -ag precmd_functions chpwd_functions
|
|
||||||
if (( $+commands[direnv] )); then
|
|
||||||
[[ -z ${precmd_functions[(r)_direnv_hook]} ]] && precmd_functions+=(_direnv_hook)
|
|
||||||
[[ -z ${chpwd_functions[(r)_direnv_hook]} ]] && chpwd_functions+=(_direnv_hook)
|
|
||||||
fi
|
|
Loading…
Reference in a new issue