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

Re: root's path



"Benjamin R. Haskell" <zsh@xxxxxxxxxx> writes:

> On Sat, 17 Mar 2012, sergio wrote:
>
>> Hello.
>>
>> How zsh sets root's $path (and $PATH)?
>> bash uses /etc/profile, for sudo completion there are /etc/zsh/zshrc
>> and $PATH for non root is in /etc/zsh/zshenv. But I can't find root
>> path anywhere.
>
> Zsh often ends up using /etc/profile or the equivalent.  On Gentoo,
> for example, /etc/zsh/zprofile sources /etc/profile.env.  On OpenSUSE,
> /etc/zprofile sources /etc/profile.

Shouldn't $PATH be set in /etc/zshenv rather than zprofile?
Else, it's impossible to override $PATH in ~/.zshenv.

-- 
Christian Neukirchen  <chneukirchen@xxxxxxxxx>  http://chneukirchen.org



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