Fix macOS PATH being rewritten in /etc/zprofile
macOS is obnoxious and overwrites the PATH from a users ~/.zshenv, which is sourced first, in /etc/zprofile by calling `/usr/libexec/path_helper -s` so this is required so that PATH is once again set to the desired value.
This commit is contained in:
5
zprofile
5
zprofile
@@ -1,2 +1,7 @@
|
||||
# .zprofile [1] Used for executing user's commands at start, will be sourced
|
||||
# when starting as a login shell.
|
||||
|
||||
# macOS is obnoxious and overwrites the PATH from a users ~/.zshenv, which is
|
||||
# sourced first, in /etc/zprofile by calling `/usr/libexec/path_helper -s` so
|
||||
# this is required so that PATH is once again set to the desired value.
|
||||
[ `uname` = Darwin ] && source ~/.zshenv
|
||||
|
||||
Reference in New Issue
Block a user