From ad14880ab2b8eb613a6f157c102e25c1a7861d02 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Thu, 13 Feb 2025 11:59:59 -0500 Subject: [PATCH] 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]`. --- bin/pyenv-virtualenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index f1cbe3d..69c61d1 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -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