Only show Python versions for completion when creating new virtual environments

Having the current virtual environments listed as options in the competion
is noisy since only bare Python versions, such as 3.11.1, make sense as
suggested completions for `pyenv virtualenv [version]`.
This commit is contained in:
Sam Doran 2025-02-13 11:59:59 -05:00
parent 6d2cb280f8
commit ad14880ab2
No known key found for this signature in database
GPG key ID: 01602635F94328AA

View file

@ -24,7 +24,7 @@ fi
# Provide pyenv completions
if [ "$1" = "--complete" ]; then
exec pyenv-versions --bare
exec pyenv-versions --bare --skip-envs --skip-aliases
fi
unset PIP_REQUIRE_VENV