From aab562c696ee7c5cd31a2821a290baaa8fcde7f3 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Fri, 7 May 2021 16:21:17 +0300 Subject: [PATCH] Add a warning about needing to restart the entire login session E.g. for a GUI session, ~/.profile is executed by the GUI login "shell" at its startup so one needs to fully log out and log back in. Before that, the change would only be seen by shells explicitly started as login shells. --- libexec/pyenv-init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libexec/pyenv-init b/libexec/pyenv-init index 22e1da02..0f06c706 100755 --- a/libexec/pyenv-init +++ b/libexec/pyenv-init @@ -114,6 +114,9 @@ function help_() { ;; esac echo + echo '# Make sure to restart your entire logon session' + echo '# for changes to ~/.profile to take effect.' + echo } >&2 }