Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PSA: Mac OS X El Capitan upgrade might break your $PATH



On Jul 31,  9:35am, Kurtis Rader wrote:
}
} On a new login shell that will be sourced after your $HOME/.zshenv.
} If you set your $PATH in your .zshenv the /usr/libexec/path_helper
} program will alter the order of the directories.
} 
} You can't remove /usr/libexec/path_helper due to the new security
} mechanisms (at least not without booting from a recovery disk) but you can
} remove /etc/zprofile which is what I did

Another option is to add to your ~/.zshenv the line:

    setopt no_global_rcs

And then if desired in your ~/.zprofile add:

    setopt global_rcs

This pair of commands placed in these two files will disable reading of
/etc/zprofile and then re-enable reading of /etc/zshrc and /etc/zlogin,
without needing to remove system files (which might re-appear on an update
anyway).



Messages sorted by: Reverse Date, Date, Thread, Author