Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: root's path
- X-seq: zsh-users 16902
- From: Christian Neukirchen <chneukirchen@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: root's path
- Date: Sat, 17 Mar 2012 12:13:53 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4F63ECD7.3040109@sergio.spb.ru> <alpine.LNX.2.01.1203170040230.18133__19065.733991056$1331959656$gmane$org@hp.internal>
- Sender: chris@juno
"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