Skip to content

Commit bf7e9ba

Browse files
committed
Show activating... messages by default
1 parent dae2788 commit bf7e9ba

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

bin/pyenv-sh-activate

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ if [ -z "$PYENV_VIRTUALENV_INIT" ]; then
8787
pyenv-virtualenv-init >&2 || true
8888
fi
8989

90-
if [ -n "$VERBOSE" ]; then
91-
echo "pyenv-virtualenv: activate ${versions}" 1>&2
92-
fi
90+
echo "pyenv-virtualenv: activate ${versions}" 1>&2
9391

9492
if [ -z "$no_shell" ]; then
9593
echo "pyenv shell \"${versions}\";"

bin/pyenv-sh-deactivate

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ if [ -z "${VIRTUAL_ENV}" ]; then
3636
exit 1
3737
fi
3838

39-
if [ -n "$VERBOSE" ]; then
40-
echo "pyenv-virtualenv: deactivate ${prefix##*/}" 1>&2
41-
fi
39+
echo "pyenv-virtualenv: deactivate ${prefix##*/}" 1>&2
4240

4341
if [ -n "${PYENV_ACTIVATE_SHELL}" ]; then
4442
# shell version set in pyenv-sh-activate should be unset

bin/pyenv-virtualenv-init

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,21 @@ function _pyenv_virtualenv_hook --on-event fish_prompt;
106106
set -l ret \$status
107107
if [ -n "\$PYENV_ACTIVATE" ]
108108
if [ (pyenv version-name 2>/dev/null; or true) = "system" ]
109-
pyenv deactivate --no-error --verbose
109+
pyenv deactivate --no-error
110110
set -e PYENV_DEACTIVATE
111111
return \$ret
112112
end
113113
if [ "\$PYENV_ACTIVATE" != "\$PYENV_PREFIX" ]
114-
if pyenv deactivate --no-error --verbose
114+
if pyenv deactivate --no-error
115115
set -e PYENV_DEACTIVATE
116-
pyenv activate --no-error --verbose; or set -e PYENV_DEACTIVATE
116+
pyenv activate --no-error; or set -e PYENV_DEACTIVATE
117117
else
118-
pyenv activate --no-error --verbose
118+
pyenv activate --no-error
119119
end
120120
end
121121
else
122122
if [ -z "\$VIRTUAL_ENV" ]; and [ "\$PYENV_DEACTIVATE" != "\$PYENV_PREFIX" ]
123-
pyenv activate --no-error --verbose; or true
123+
pyenv activate --no-error; or true
124124
end
125125
end
126126
return \$ret
@@ -144,21 +144,21 @@ if [[ "$shell" != "fish" ]]; then
144144
local ret=\$?
145145
if [ -n "\$PYENV_ACTIVATE" ]; then
146146
if [ "\$(pyenv version-name 2>/dev/null || true)" = "system" ]; then
147-
eval "\$(pyenv sh-deactivate --no-error --verbose)"
147+
eval "\$(pyenv sh-deactivate --no-error)"
148148
unset PYENV_DEACTIVATE
149149
return \$ret
150150
fi
151151
if [ "\$PYENV_ACTIVATE" != "\$(pyenv prefix 2>/dev/null || true)" ]; then
152-
if eval "\$(pyenv sh-deactivate --no-error --verbose)"; then
152+
if eval "\$(pyenv sh-deactivate --no-error)"; then
153153
unset PYENV_DEACTIVATE
154-
eval "\$(pyenv sh-activate --no-error --verbose)" || unset PYENV_DEACTIVATE
154+
eval "\$(pyenv sh-activate --no-error)" || unset PYENV_DEACTIVATE
155155
else
156-
eval "\$(pyenv sh-activate --no-error --verbose)"
156+
eval "\$(pyenv sh-activate --no-error)"
157157
fi
158158
fi
159159
else
160160
if [ -z "\$VIRTUAL_ENV" ] && [ "\$PYENV_DEACTIVATE" != "\$(pyenv prefix 2>/dev/null || true)" ]; then
161-
eval "\$(pyenv sh-activate --no-error --verbose)" || true
161+
eval "\$(pyenv sh-activate --no-error)" || true
162162
fi
163163
fi
164164
return \$ret

0 commit comments

Comments
 (0)