mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Fix completion of pyenv activate (fixes #15)
This commit is contained in:
parent
503a51564e
commit
a958640776
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in a new issue