mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Place full shell configuration instructions into pyenv init
including initial PATH and PYENV_ROOT entries. The migration hint proved to be unclear to users without them.
This commit is contained in:
parent
35795148fb
commit
13deda8875
1 changed files with 16 additions and 2 deletions
|
@ -91,7 +91,21 @@ function help_() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
{ echo "# Load pyenv automatically by appending"
|
{ echo "# Add pyenv executable to PATH by adding"
|
||||||
|
echo "# the following to ~/.profile:"
|
||||||
|
echo
|
||||||
|
case "$shell" in
|
||||||
|
fish )
|
||||||
|
echo 'set -Ux PYENV_ROOT $HOME/.pyenv'
|
||||||
|
echo 'set -Ux fish_user_paths $PYENV_ROOT/bin $fish_user_paths'
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo 'export PYENV_ROOT="$HOME/.pyenv"'
|
||||||
|
echo 'export PATH="$PYENV_ROOT/bin:$PATH"'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo
|
||||||
|
echo "# Load pyenv automatically by appending"
|
||||||
echo "# the following to ${profile}:"
|
echo "# the following to ${profile}:"
|
||||||
echo
|
echo
|
||||||
case "$shell" in
|
case "$shell" in
|
||||||
|
@ -103,7 +117,7 @@ function help_() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
echo "# And the following to ~/.profile:"
|
echo "# and the following to ~/.profile:"
|
||||||
echo
|
echo
|
||||||
case "$shell" in
|
case "$shell" in
|
||||||
fish )
|
fish )
|
||||||
|
|
Loading…
Reference in a new issue