From a95864077658523c1aeb12fedf42d051ffc59544 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Mon, 3 Feb 2014 14:49:47 +0900 Subject: [PATCH] Fix completion of `pyenv activate` (fixes #15) --- bin/pyenv-activate | 6 ++++++ 1 file changed, 6 insertions(+) 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."