plugins/nodenv: use _command_exists
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
# shellcheck shell=bash
|
||||
cite about-plugin
|
||||
about-plugin 'load nodenv, if you are using it'
|
||||
|
||||
export NODENV_ROOT="$HOME/.nodenv"
|
||||
pathmunge "$NODENV_ROOT/bin"
|
||||
|
||||
[[ `which nodenv` ]] && eval "$(nodenv init - bash)"
|
||||
if _command_exists nodenv; then
|
||||
eval "$(nodenv init - bash)"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user