Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Latest stable release of zsh triggers the addition of paths to $PATH
- X-seq: zsh-users 17693
- From: James Jong <ribonucleico@xxxxxxxxx>
- To: Lawrence Velázquez <larryv@xxxxxxxxxxxx>
- Subject: Re: Latest stable release of zsh triggers the addition of paths to $PATH
- Date: Wed, 13 Mar 2013 16:43:20 -0400
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=9lBsJ4tdaCKTRfUMjESi72R9IWt8OvO8FLBEZUMbNZI=; b=uhhnU9i4wgx8KH5oCItp4kNqBokNhFikXVA43MRjOBmJyHFguzaSjFTeAWDaoviu/2 igkqSiuNpKwj/wg+XvdYarWRaaR4F+vmo4nu/cYg9bPdVG1m9gloXoXltzGsEE1gYIpP iHMDDAeE4UhD8E9jDlNmjiUUtbW4V4KVoBJy3ZT1uvyvIYWDf7BvJq7EKfoRaO8BZOLT rGov69Haw5WNoRx+e60J1WbrAwdhQYEc/+00mzsLc9hDn4zBRV7AjcLxCu2LJvcv+dTM 68J055ENq3fO+CirbSKvYMpTN94LeguzZ7DZE4xUyrFGErxddAK4VYh8MbmUMocy8RGT x6VQ==
- In-reply-to: <7054F6AC-DD66-4174-A199-D30DBF5E5E4A@macports.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAD4ivxXVaur2-yswW1L+TwViEuY8dUij9ZBV9gniJaZyQue-Cg@mail.gmail.com> <FF30192D-8B2E-432B-B7E9-CEE0D7FACA47@macports.org> <CAD4ivxUg8k906+=kHqny3+fLGoRpGiFNQuzWceY-OXaHv_9k_Q@mail.gmail.com> <7054F6AC-DD66-4174-A199-D30DBF5E5E4A@macports.org>
Thanks yes. There are lots of /etc/z* files and some of them have stuff in
them, so that seems to be the problem. More specifically:
The file /etc/zprofile sources /etc/profile which has stuff in it
The file /etc/zshrc has the following:
if [ "x$SHLVL" != "x1" ]; then
for i in /etc/profile.d/*.sh; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
fi
At this point I have some questions:
1) What doest the if statement above test?
2) When I run a zsh script, how can I prevent it from running /etc/zshrc?
3) When I switch to zsh from tcsh on an interactive shell using exec zsh
-l, how I can I prevent it from running /etc/zprofile?
Thanks again for all your help,
James
On Tue, Mar 12, 2013 at 8:20 PM, Lawrence Velázquez <larryv@xxxxxxxxxxxx>wrote:
> On Mar 12, 2013, at 6:26 PM, James Jong <ribonucleico@xxxxxxxxx> wrote:
>
> > Thanks. I just checked and /etc/zshenv is empty (it only has a few
> automatically-generated comments explaining what it is for).
>
> Are there any other /etc/z* files?
>
> vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author