diff --git a/bin/pyenv-activate b/bin/pyenv-activate index aaa8d7d..ef213c1 100755 --- a/bin/pyenv-activate +++ b/bin/pyenv-activate @@ -14,6 +14,12 @@ set -e [ -n "$PYENV_DEBUG" ] && set -x +# Provide pyenv completions +if [ "$1" = "--complete" ]; then + echo --unset + exec pyenv-virtualenvs --bare +fi + { printf "\x1B[31;1m" echo echo "Failed to activate virtualenv."