You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though setting path in .zshrc will work on macs, .zprofile may be better choice. Just avoid .zshenv always!
As detailed at "Setting $PATH for zsh on macOS.md where they say ...
Using zsh, on macOS, avoid ~/.zshenv and choose ~/.zshrc or ~/.zprofile instead. In fact, better to replace ~/.zshenv with ~/.zprofile so that both Linux and macOS will use the same files with the very same config.
The gist also explains why this suggestion to mess with /etc/paths is not a good idea (as apple updates would likely overwrite anyways):
insert /usr/local/bin before the first line of /etc/paths to change the global default paths order, for all users and all major shells.
<== bad idea. Not sure what right way is to change global path for all users on macos with zsh ;-)
And upon finish of homebrew install script, it suggests using .zprofile as follows for M1 macs:
I'm Submitting a ...
Bug Location
https://github.com/sb2nov/mac-setup/tree/main/Homebrew#setting-up-your-path
Tool/Language/etc
``
Though setting path in .zshrc will work on macs, .zprofile may be better choice. Just avoid .zshenv always!
As detailed at "Setting $PATH for zsh on macOS.md where they say ...
The gist also explains why this suggestion to mess with /etc/paths is not a good idea (as apple updates would likely overwrite anyways):
And upon finish of homebrew install script, it suggests using .zprofile as follows for M1 macs:
This command to append output of
brew shellenv
to~/.zprofile
should only be run once.For intel or rosetta2 users, it would be as below, which appends to to
~/.zprofile
all the export lines shown.Other Information
Nice work btw... if I find time I'll do a PR.
The text was updated successfully, but these errors were encountered: