Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ~/.zshenv or ~/.zprofile
- X-seq: zsh-users 6531
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: ~/.zshenv or ~/.zprofile
- Date: Sun, 7 Sep 2003 22:27:28 -0500
- In-reply-to: <20030907212433.GA233@DervishD>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030803221858.GA2720@xxxxxxxxxxxxxxxxxx> <20030803223949.GA18476@xxxxxxxxxxxxxxxx> <1030804060015.ZM15706@xxxxxxxxxxxxxxxxxxxxxxx> <20030907175710.GA28613@xxxxxxxxxxxxxxxx> <20030907212433.GA233@DervishD>
In the last episode (Sep 07), DervishD said:
> * Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx> dixit:
> > I'd like to change the StartupFiles/zshenv file so that it doesn't
> > recommend setting the "path". How about something like the
> > attached patch?
>
> The patch and the explanations seems to be quite useful. Anyway: what
> is the proper place to set up the "path"? I mean globally not
> per-user (that is, not ~/.*).
My global path settings are in zshenv, because that's the only one read
from scripts when your original login shell wasn't zsh and from cron
jobs.
path=(/usr/local/bin /usr/local/sbin /usr/bin /usr/sbin /usr/opt/*/bin /usr/opt/*/sbin $path)
typeset -U PATH
The typeset removes duplicate entries.
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author