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

Re: zsh no longer inherit my $PATH.



On Mon, Jul 15, 2013 at 1:58 PM, Piotr Karbowski <jabberuser@xxxxxxxxx>wrote:

>
> Ignore, gentoo bug 19924
>
> -- Piotr.
>
>
What's really stupid about that bug is that whoever made the most recent
change does not appear to have read/understood the comment thread in the
bug tracker, which clearly explains why /etc/zshenv is the WRONG place to
do this.

Well, strictly speaking it's fine to do this in /etc/zshenv PROVIDED that
the environment is changed NON-DESTRUCTIVELY.  In the case of PATH/path,
that means adding missing directories without deleting any that are already
there.

One approach would be to test [[ -o login ]] and set the path
unconditionally when that is true, or add to it when that is false.


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