plugins/rbenv: use _command_exists

This commit is contained in:
John D Pell
2021-09-19 21:54:33 -07:00
parent b14bb4735e
commit cff6f3464a
2 changed files with 5 additions and 1 deletions

View File

@@ -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