Fix completion of pyenv activate (fixes #15)

This commit is contained in:
Yamashita Yuu
2014-02-03 14:49:47 +09:00
parent 503a51564e
commit a958640776

View File

@@ -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."