mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-15 15:03:53 -05:00
Use pyenv-virtualenv-init to show caveats
This commit is contained in:
@@ -62,18 +62,7 @@ esac
|
|||||||
|
|
||||||
if [ -f "$profile" ]; then
|
if [ -f "$profile" ]; then
|
||||||
if grep -q 'pyenv init -' "$profile" && ! grep -q 'pyenv virtualenv-init' "$profile"; then
|
if grep -q 'pyenv init -' "$profile" && ! grep -q 'pyenv virtualenv-init' "$profile"; then
|
||||||
{ echo "# Load pyenv-virtualenv automatically by adding"
|
{ pyenv-virtualenv-init || true
|
||||||
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
|
|
||||||
} >&2
|
} >&2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user