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