Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ~/.zshenv or ~/.zprofile
- X-seq: zsh-users 6532
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- Subject: Re: ~/.zshenv or ~/.zprofile
- Date: Mon, 8 Sep 2003 11:45:40 +0200
- Cc: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- In-reply-to: <20030908032728.GH48339@xxxxxxxxxxxxxxxx>
- Mail-followup-to: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>, Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <20030803221858.GA2720@xxxxxxxxxxxxxxxxxx> <20030803223949.GA18476@xxxxxxxxxxxxxxxx> <1030804060015.ZM15706@xxxxxxxxxxxxxxxxxxxxxxx> <20030907175710.GA28613@xxxxxxxxxxxxxxxx> <20030907212433.GA233@DervishD> <20030908032728.GH48339@xxxxxxxxxxxxxxxx>
Hi Dan :)
* Dan Nelson <dnelson@xxxxxxxxxxxxxxx> dixit:
> 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.
Well, that was my doubt ;))
> path=(/usr/local/bin
> typeset -U PATH
Good solution! Just one more question: if the user runs, as in
the example, 'PATH=whatever gdb program', this is because the user
wants JUST that path, no more, no less. Shouldn't be a better
approach something like:
[[ -z "$path" ]] && path=(mypath $path)
typeset -U path
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author