We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
I tried to evaluate env like this
env -i /usr/local/bin/fish -l -i -c env
The env -i prefix is required for this test to prevent inheriting my local environment.
This should output the environment of a fresh fish interactive login shell, however, it doesn't seem fish evaluates any configuration at all.
Any user PATHs configured in config.fish or fish_variables do not show up in the PATH= line of the output.
fish, version 3.1.2
macOS Big Sur 11.1 (20C69)
The text was updated successfully, but these errors were encountered:
Fish always reads config.fish, even in non-interactive and non-login shells.
Your problem is that env -i also erases $HOME, so fish won't find config.fish, so try
env -i HOME=$HOME /usr/local/bin/fish -l -i -c env
Sorry, something went wrong.
You sir, are correct!
env: Setup $HOME/$USER *before* the config directories
They are based on $HOME, so setting $HOME has to be done first.
(untested because I'm assuming common CI systems have weird $HOME settings)
On second look, we already try to figure out $HOME and $USER, but we do it a bit too late - after determining the config path.
Simply doing that earlier means this can be worked around - not that I recommend starting fish with an unset $HOME.
No branches or pull requests