From: DervishD <raul@pleyades.net>
To: Dan Nelson <dnelson@allantgroup.com>
Cc: Wayne Davison <wayned@users.sourceforge.net>,
Bart Schaefer <schaefer@brasslantern.com>,
zsh-users@sunsite.dk
Subject: Re: ~/.zshenv or ~/.zprofile
Date: Mon, 8 Sep 2003 11:45:40 +0200 [thread overview]
Message-ID: <20030908094540.GB51@DervishD> (raw)
In-Reply-To: <20030908032728.GH48339@dan.emsphone.com>
Hi Dan :)
* Dan Nelson <dnelson@allantgroup.com> dixit:
> In the last episode (Sep 07), DervishD said:
> > * Wayne Davison <wayned@users.sourceforge.net> 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/
next prev parent reply other threads:[~2003-09-08 9:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-03 22:18 Nikolai Weibull
2003-08-03 22:39 ` Wayne Davison
2003-08-04 6:00 ` Bart Schaefer
2003-09-07 17:57 ` Wayne Davison
2003-09-07 21:24 ` DervishD
2003-09-08 3:27 ` Dan Nelson
2003-09-08 9:45 ` DervishD [this message]
2003-09-08 15:57 ` Dan Nelson
2003-09-08 22:01 ` DervishD
2003-09-08 9:47 ` Phil Pennock
2003-09-08 10:59 ` DervishD
2003-09-08 17:55 ` Wayne Davison
2003-09-08 22:48 ` Phil Pennock
2003-09-10 20:00 ` Wayne Davison
2003-09-10 19:57 ` Wayne Davison
2003-09-11 6:50 ` Oliver Kiddle
2003-08-04 2:57 ` Dan Nelson
2003-08-04 10:45 ` Nikolai Weibull
2003-08-04 9:15 ` Zefram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030908094540.GB51@DervishD \
--to=raul@pleyades.net \
--cc=dnelson@allantgroup.com \
--cc=schaefer@brasslantern.com \
--cc=wayned@users.sourceforge.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).