From d2bd4c06ef389f88206f0c5c25f973b4d6ce3a9e Mon Sep 17 00:00:00 2001 From: Hugh Rawlinson Date: Sun, 27 Jun 2021 00:22:59 +0200 Subject: [PATCH] Suggest that fish users init in interactive mode ...rather than login mode. I couldn't get rid of the warning that `pyenv init -` no longer sets path until I did this. It looks like setting only on the login shell wasn't enough to hide the warning in other shells I opened. This fits with [how rbenv does the same thing](https://github.com/rbenv/rbenv/blob/master/libexec/rbenv-init#L74). I'm way out of my depth here, so someone who knows about shell types should definitely review this. --- libexec/pyenv-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/pyenv-init b/libexec/pyenv-init index 0bb88fa7..08c4f8e2 100755 --- a/libexec/pyenv-init +++ b/libexec/pyenv-init @@ -109,7 +109,7 @@ function help_() { echo "# Load pyenv automatically by appending" echo "# the following to ~/.config/fish/config.fish:" echo - echo 'status is-login; and pyenv init --path | source' + echo 'status is-interactive; and pyenv init --path | source' echo 'pyenv init - | source' echo echo "# If fish is not your login shell,"