mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 07:13:53 -05:00
import trivial changes from rbenv 0.4.0
This commit is contained in:
@@ -21,6 +21,7 @@ if [ "$1" = "--complete" ]; then
|
||||
exec pyenv shims --short
|
||||
fi
|
||||
|
||||
export PYENV_VERSION="$(pyenv-version-name)"
|
||||
PYENV_COMMAND="$1"
|
||||
|
||||
if [ -z "$PYENV_COMMAND" ]; then
|
||||
@@ -36,5 +37,7 @@ for script in $(pyenv-hooks exec); do
|
||||
done
|
||||
|
||||
shift 1
|
||||
export PATH="${PYENV_BIN_PATH}:${PATH}"
|
||||
if [ "$PYENV_VERSION" != "system" ]; then
|
||||
export PATH="${PYENV_BIN_PATH}:${PATH}"
|
||||
fi
|
||||
exec -a "$PYENV_COMMAND" "$PYENV_COMMAND_PATH" "$@"
|
||||
|
||||
Reference in New Issue
Block a user