docs: fix help_() function inside pyenv-init, such that it reminds users

to specify the shell they are using when adding:
`eval $(pyenv init - <shell>)` to their config file.
This commit is contained in:
Christian Fredrik Johnsen 2024-12-11 03:11:45 +01:00
parent 66a5c14622
commit b21c209329

View File

@ -150,7 +150,7 @@ function help_() {
echo "# Load pyenv automatically by appending" echo "# Load pyenv automatically by appending"
echo "# the following to ~/.config/fish/config.fish:" echo "# the following to ~/.config/fish/config.fish:"
echo echo
echo 'pyenv init - | source' echo 'pyenv init - fish | source'
echo echo
;; ;;
* ) * )
@ -166,7 +166,7 @@ function help_() {
echo echo
echo 'export PYENV_ROOT="$HOME/.pyenv"' echo 'export PYENV_ROOT="$HOME/.pyenv"'
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"'
echo 'eval "$(pyenv init -)"' echo "eval \"\$(pyenv init - $shell)\""
;; ;;
esac esac
echo echo