mirror of
https://github.com/danbee/dotfiles-local
synced 2025-03-04 08:49:07 +00:00
Disable direnv
This commit is contained in:
parent
5a132d6697
commit
1da4d43b73
14
zshrc.local
14
zshrc.local
@ -34,20 +34,6 @@ fi
|
|||||||
export PATH=/usr/local/share/npm/bin:$PATH
|
export PATH=/usr/local/share/npm/bin:$PATH
|
||||||
export NODE_PATH=/usr/local/lib/node_modules
|
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
|
# Environment config
|
||||||
[[ -f ~/.zshrc.env ]] && source ~/.zshrc.env
|
[[ -f ~/.zshrc.env ]] && source ~/.zshrc.env
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user