Skip to content

Commit f159f1a

Browse files
mislavGeoff Harcourt
authored andcommitted
Revert "Add instructions to fix path on OS X El Capitan"
For years, OS X has mistakently invoked `path_helper` in `/etc/zshenv` (affecting all zsh runtimes, even non-interactive shells such as scripts) instead of from `/etc/zprofile` where it should have been because it needs to only run once for a login shell. This frustrated a lot of users since `path_helper` would unexpectedly reorder their PATH by putting system paths first during nested invocations of zsh. Many have disabled their `path_helper` because they believed it to be the culprit. Instead, what they should have done is fixed the OS X configuration bug and renamed their `/etc/zshenv` to `/etc/zprofile`. Recently, El Capitan shipped and users of zsh rejoiced because it has finally fixed its faulty zsh configuration: the `path_helper` is now correctly invoked from `/etc/zprofile`. This was a deliberate change on Apple's part and is a BUG FIX, NOT A REGRESSION. However, now this project suggests the opposite: revert the El Capitan fix and move `/etc/zprofile` to `/etc/zshenv`. This is unwise since it teleports us to the olden days of broken zsh configuration. Please don't instruct users to break their system. This reverts commit 15de0bc.
1 parent 3b4de90 commit f159f1a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,6 @@ You can safely run `rcup` multiple times to update:
4545
You should run `rcup` after pulling a new version of the repository to symlink
4646
any new files in the repository.
4747

48-
#### Note for OS X El Capitan Users
49-
50-
OS X El Capitan (10.11) calls `path_helper` from `/etc/zprofile`, which gets
51-
sourced *after* `.zshenv`, and will reorder your path in such a way that
52-
installed software such as Ruby, rbenv, Homebrew, etc. may not work correctly.
53-
You can rename the file to prevent it from editing your environment path after
54-
changes made in `.zshenv`:
55-
56-
```shell
57-
% sudo mv /etc/{zprofile,zshenv}
58-
```
59-
6048
Make your own customizations
6149
----------------------------
6250

0 commit comments

Comments
 (0)