mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Show usage for rbenv which
without an argument
This commit is contained in:
parent
03d664e048
commit
3644840d4b
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ remove_from_path() {
|
|||
RBENV_VERSION="$(rbenv-version-name)"
|
||||
RBENV_COMMAND="$1"
|
||||
|
||||
if [ -z "$RBENV_COMMAND" ]; then
|
||||
echo "usage: rbenv which COMMAND" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$RBENV_VERSION" = "system" ]; then
|
||||
PATH="$(remove_from_path "${RBENV_ROOT}/shims")"
|
||||
RBENV_COMMAND_PATH="$(command -v "$RBENV_COMMAND")"
|
||||
|
|
Loading…
Reference in a new issue