Why check for login shell in the fish.config snippet ? #2195
-
In the installation instructions for the fish shell, it is recommended to add to the user's status is-login; and pyenv init --path | source
status is-interactive; and pyenv init - | source I do not understand the reason why |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Any non-login shell is (in a normal setup) a descendant of a login shell. Anyway, we're currently considering going forward with #2085 which will make a separate |
Beta Was this translation helpful? Give feedback.
Any non-login shell is (in a normal setup) a descendant of a login shell.
If Fish is not your login shell, you need to add an equivalent command to your login shell's configuration.
In a Linux GUI session, the GUI manager acts as a Sh login shell (executing
~/.profile
).Anyway, we're currently considering going forward with #2085 which will make a separate
--path
step unnecessary (except for some Bash setups).