mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 15:26:23 -04:00
Use pyenv-virtualenv-init to show caveats
This commit is contained in:
parent
55a2a9e482
commit
7828a15066
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue