mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Only show aliases as completions for pyenv activate
This makes the suggested completetions cleaner.
This commit is contained in:
parent
ad14880ab2
commit
39f35841f9
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue