mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-29 12:12:59 -05:00
15 lines
433 B
Bash
Executable file
15 lines
433 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Summary: Show the current Python version and its origin
|
|
#
|
|
# Shows the currently selected Python version and how it was
|
|
# selected. To obtain only the version string, use `pyenv
|
|
# version-name'.
|
|
|
|
set -e
|
|
[ -n "$PYENV_DEBUG" ] && set -x
|
|
|
|
IFS=: PYENV_VERSION_NAMES=($(pyenv-version-name))
|
|
|
|
for PYENV_VERSION_NAME in "${PYENV_VERSION_NAMES[@]}"; do
|
|
echo "$PYENV_VERSION_NAME (set by $(pyenv-version-origin))"
|
|
done
|