Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: environment settings
- X-seq: zsh-workers 25197
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: environment settings
- Date: Tue, 17 Jun 2008 16:45:42 +0200
- Cc: Jörg Sommer <joerg@xxxxxxxxxxxx>
- In-reply-to: <20080617132611.GL5016@xxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, Jörg Sommer <joerg@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080616074651.GB26165@marcus> <20080616080556.GA5091@xxxxxxxxxxxxxxx> <20080616123045.GC26165@marcus> <20080616124450.GC5091@xxxxxxxxxxxxxxx> <slrng5etlu.mft.joerg@xxxxxxxxxxxx> <20080617093859.GB5016@xxxxxxxxxxxxxxx> <20080617104126.GC10734@xxxxxxxxxxxxxxxxxxx> <20080617125834.GI5016@xxxxxxxxxxxxxxx> <20080617131154.GM10734@xxxxxxxxxxxxxxxxxxx> <20080617132611.GL5016@xxxxxxxxxxxxxxx>
On 2008-06-17 14:26:11 +0100, Stephane Chazelas wrote:
> So, you have a script that expects a $PATH that is different
> from the system's $PATH,
No. Please read again.
> and your solution is to update the ~/.zshenv for every user that is
> meant to run that script, and by doing so, possibly affecting the
> behavior of all the other zsh scripts that those users may run?
That's completely silly: each user controls his own ~/.zshenv.
> It seems to me that the /right thing/ would be to update the
> script
No, the script can come from a tarball or whatever.
> (or write a wrapper that sets $PATH if it's a binary file
> instead of a script),
For a global config, this can be annoying.
> or update the system's $PATH. But you can always put it in ~/.zshenv
> if you can't be bothered or if you don't have the right to update
> the system's $PATH.
Put what in ~/.zshenv? The additional bin directories (e.g. $HOME/bin)?
This is what I've said.
> Moreover, if you do
>
> path+=(/some/path)
> in ~/.zshenv, you'll soon end up with /some/path dupplicated.
No:
# Path clean-up
path=($^path(N))
(But a duplicated path isn't fatal.)
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author