mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
16 lines
441 B
Bash
Executable file
16 lines
441 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Summary: Show the current Ruby version and its origin
|
|
#
|
|
# Shows the currently selected Ruby version and how it was
|
|
# selected. To obtain only the version string, use `rbenv
|
|
# version-name'.
|
|
|
|
set -e
|
|
[ -n "$RBENV_DEBUG" ] && set -x
|
|
|
|
RBENV_VERSION_ORIGIN="$(rbenv-version-origin)"
|
|
if [ -z "$RBENV_VERSION_ORIGIN" ]; then
|
|
echo "$(rbenv-version-name)"
|
|
else
|
|
echo "$(rbenv-version-name) (set by $RBENV_VERSION_ORIGIN)"
|
|
fi
|