mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-11 21:13:52 -05:00
style
This commit is contained in:
@@ -41,7 +41,6 @@ fi
|
|||||||
pyenv-virtualenv-prefix "${versions}" 1>/dev/null
|
pyenv-virtualenv-prefix "${versions}" 1>/dev/null
|
||||||
|
|
||||||
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
|
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
|
||||||
|
|
||||||
case "$shell" in
|
case "$shell" in
|
||||||
bash )
|
bash )
|
||||||
profile="$HOME/.bash_profile"
|
profile="$HOME/.bash_profile"
|
||||||
@@ -60,11 +59,9 @@ fish )
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -f "$profile" ]; then
|
# Display setup instruction if 'pyenv virtualenv-init -' is not found in "$profile"
|
||||||
if grep -q 'pyenv init -' "$profile" && ! grep -q 'pyenv virtualenv-init' "$profile"; then
|
if [ -f "$profile" ] && grep -q 'pyenv init -' "$profile" && ! grep -q 'pyenv virtualenv-init -' "$profile"; then
|
||||||
{ pyenv-virtualenv-init || true
|
pyenv-virtualenv-init >&2 || true
|
||||||
} >&2
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$no_shell" ]; then
|
if [ -z "$no_shell" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user