From 7828a1506651ec6eec6e8c2649295d9e2fbc5084 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 5 Jun 2014 00:17:06 +0900 Subject: [PATCH] Use `pyenv-virtualenv-init` to show caveats --- bin/pyenv-sh-activate | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index bd05103..28d3fb5 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -62,18 +62,7 @@ esac if [ -f "$profile" ]; then if grep -q 'pyenv init -' "$profile" && ! grep -q 'pyenv virtualenv-init' "$profile"; then - { echo "# Load pyenv-virtualenv automatically by adding" - echo "# the following to ${profile}:" - echo - case "$shell" in - fish ) - echo 'status --is-interactive; and . (pyenv virtualenv-init -|psub)' - ;; - * ) - echo 'eval "$(pyenv virtualenv-init -)"' - ;; - esac - echo + { pyenv-virtualenv-init || true } >&2 fi fi