From b21c209329a9fd6d503d6831d4d38d6ea7410665 Mon Sep 17 00:00:00 2001 From: Christian Fredrik Johnsen Date: Wed, 11 Dec 2024 03:11:45 +0100 Subject: [PATCH] docs: fix help_() function inside pyenv-init, such that it reminds users to specify the shell they are using when adding: `eval $(pyenv init - )` to their config file. --- libexec/pyenv-init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/pyenv-init b/libexec/pyenv-init index 4084fa25..a60d70e6 100755 --- a/libexec/pyenv-init +++ b/libexec/pyenv-init @@ -150,7 +150,7 @@ function help_() { echo "# Load pyenv automatically by appending" echo "# the following to ~/.config/fish/config.fish:" echo - echo 'pyenv init - | source' + echo 'pyenv init - fish | source' echo ;; * ) @@ -166,7 +166,7 @@ function help_() { echo echo 'export PYENV_ROOT="$HOME/.pyenv"' echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' - echo 'eval "$(pyenv init -)"' + echo "eval \"\$(pyenv init - $shell)\"" ;; esac echo