# * Looking for $RBENV_BIN_ROOT/rbenv. This environment variable is specific to this plugin
# * Looking for rbenv on $PATH
# * Looking for rbenv in the user's home directory
# When necessary, prepend the bin/ directory containing rbenv to our $PATH.
if[-e "$RBENV_BIN_ROOT/rbenv"]
setrbenv_binary"$RBENV_BIN_ROOT/rbenv"
_prepend_path"$RBENV_BIN_ROOT"
elseif[(command command-v rbenv)]
setrbenv_binary(command command-v rbenv)
elseif[-e "$HOME/.rbenv/bin/rbenv"]
setrbenv_binary"$HOME/.rbenv/bin/rbenv"
_prepend_path"$HOME/.rbenv/bin"
else
echo"Could not find rbenv. Make sure it's on your system path, in your home directory or set the RBENV_BIN_ROOT environment variable pointing to the directory where you unpacked rbenv."