From 4e9d697887df2bb09f8bed53e72d27228821c0e0 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Mon, 23 Nov 2015 13:34:46 +0000 Subject: [PATCH] Suppress message about `virtualenv-init` if `-quiet` given (fixes #122) --- bin/pyenv-sh-activate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index ba5d5c8..007fdbc 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -123,7 +123,9 @@ fi # Display setup instruction, if pyenv-virtualenv has not been initialized. # if 'pyenv virtualenv-init -' is not found in "$profile" if [ -z "$PYENV_VIRTUALENV_INIT" ]; then - pyenv-virtualenv-init >&2 || true + if [ -z "${QUIET}" ]; then + pyenv-virtualenv-init >&2 || true + fi fi pyenv-sh-deactivate --quiet ${VERBOSE+--verbose} || true