1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Disable direnv

This commit is contained in:
Daniel Barber 2023-01-23 16:14:50 -06:00
parent 5a132d6697
commit 1da4d43b73

View File

@ -34,20 +34,6 @@ fi
export PATH=/usr/local/share/npm/bin:$PATH
export NODE_PATH=/usr/local/lib/node_modules
# Enable direnv
if (( $+commands[direnv] )); then
#eval `direnv hook $0`
_direnv_hook() {
eval "$(direnv export $0)";
}
typeset -a precmd_functions
if [[ -z $precmd_functions[(r)_direnv_hook] ]]; then
precmd_functions+=_direnv_hook;
fi
# Make direnv use the system ruby. https://github.com/zimbatm/direnv/issues/42
export DIRENV_RUBY=/usr/bin/ruby
fi
# Environment config
[[ -f ~/.zshrc.env ]] && source ~/.zshrc.env