-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
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? Sign in to your account
brew doctor gives incorrect instructions to fix path for fish shell #8965
Comments
Could you try and open a pull request? This document should help and we're happy to walk you through anything else. Thanks! |
I will try |
That is correct, but there is one caveat about this which is not mentioned in docs. This will append Those are correct commands to suggest to users on how to fix # set universal $fish_user_paths with values "/usr/local/sbin" and values from $fish_user_paths
set -U fish_user_paths "/usr/local/sbin" $fish_user_paths
# append universal $fish_user_paths with "/usr/local/sbin"
set -Ua fish_user_paths "/usr/local/sbin"
# fish_add_path is a function that checks if the path is already part of $fish_user_paths and if not, adds it to $fish_user_paths
echo 'fish_add_path "/usr/local/sbin"' >> ~/.config/fish/config.fish |
We'll accept a pull request for this. |
Shouldn't the issue remain open until a fix has been merged? |
No, that's not how we manage our issue tracker, sorry. |
fixes Homebrew#8965 See Fish docs https://fishshell.com/docs/current/tutorial.html#path. > A faster way is to use the `fish_add_path function`... The advantage is that > you don't have to go mucking around in files: just run this once at the > command line, and it will affect the current session and all future instances > too. > > Or you can modify `$fish_user_paths` yourself, but you should be careful not > to append to it unconditionally in config.fish, or it will grow longer and > longer.
Bug report
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
Run brew doctor, and follow instructions to include
/usr/local/sbin
in thePATH
.What happened (include command output)
brew doctor
What you expected to happen
According to the fish documentation, the
fish_user_paths
env variable should not be set inconfig.fish
, but insteadPATH
should be used. Below you can find what the recommended way to updatePATH
inconfig.fish
is, according to the docs.Step-by-step reproduction instructions (by running
brew
commands)brew doctor
Output of
brew config
andbrew doctor
commandsThe text was updated successfully, but these errors were encountered: