Only show aliases as completions for pyenv activate

This makes the suggested completetions cleaner.
This commit is contained in:
Sam Doran 2025-02-13 12:03:24 -05:00
parent ad14880ab2
commit 39f35841f9
No known key found for this signature in database
GPG key ID: 01602635F94328AA
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ set -e
# Provide pyenv completions
if [ "$1" = "--complete" ]; then
echo --unset
exec pyenv-virtualenvs --bare
exec pyenv-virtualenvs --bare --only-aliases
fi
{ printf "\x1B[31;1m"

View file

@ -51,7 +51,7 @@ while [ $# -gt 0 ]; do
"--complete" )
# Provide pyenv completions
echo --unset
exec pyenv-virtualenvs --bare
exec pyenv-virtualenvs --bare --only-aliases
;;
"-f" | "--force" )
FORCE=1