zsh-users
 help / color / mirror / code / Atom feed
From: Phil Pennock <phil.pennock@globnix.org>
To: zsh-users@sunsite.dk
Subject: Re: ~/.zshenv or ~/.zprofile
Date: Mon, 8 Sep 2003 22:48:30 +0000	[thread overview]
Message-ID: <20030908224830.GA21472@globnix.org> (raw)
In-Reply-To: <20030908175556.GE28613@binome.blorf.net>

On 2003-09-08 at 10:55 -0700, Wayne Davison wrote:
> Another solution for that is to use ~/.ssh/environment (as long as the
> "PermitUserEnvironment yes" option is set in the sshd_config file).  It
> also has the benefit of working regardless of what login shell you might
> have on a particular machine.

Heh -- on various Solaris boxes here, my .zshenv (or system zshenv)
builds $PATH at run-time, by setting $path to uniqueness and adding
various globs using zsh glob modifiers.

typeset -aU path
typeset -x PATH
path=(
	/foo
	/opt/special-priority/bin
	/bar
	/usr/*/bin(/)
	/opt/*/bin(/)
     )

I could mess around with cronjobs to keep that more up-to-date.  I could
do so and create a file in bourne-compatible syntax, sourced from
/etc/profile.  I could do many things.

I keep things simple and set $path in zshenv -- it's understandable and
doesn't lead to other people having to wade through docs which I've
written or reverse-engineer stuff themselves.

If set in /etc/zshenv then this stuff can contain some highly
system-dependent locations.

zsh rocks.
-- 
2001: Blogging invented. Promises to change the way people bore strangers with
banal anecdotes about their pets. <http://www.thelemon.net/issues/timeline.php>


  reply	other threads:[~2003-09-08 22:48 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
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 [this message]
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=20030908224830.GA21472@globnix.org \
    --to=phil.pennock@globnix.org \
    --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).