Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why isn't zsh sourcing .zshenv ?
- X-seq: zsh-users 20963
- From: "TJ Luoma" <luomat@xxxxxxxxx>
- To: "Zsh-Users List" <zsh-users@xxxxxxx>
- Subject: Re: Why isn't zsh sourcing .zshenv ?
- Date: Wed, 18 Nov 2015 18:38:27 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=eA04I3F218O3YRc3zzDQl04nOKlsRSjAL/DeX/XeEik=; b=y8vtxjleaUKimi+Td5cQQOfISe5kNjydwn5NEQ2k5oku9ywP9DUkmIIDk6MQXKrr2Y Dw1OQfpXHvMSlRbtrk2Yakdcc1Sxyn9Fil2rF+Y2OCyKkAXn/Y/0CPTPK59PytgHA/fd NakGs/wUAlDyGdA1IldYQkyFD9T17Qy61njx0NGQMmakeHt7IqBzhB8rY2y+1GZQ62VA lRJKDfdTwl9JFEO8gDIjkGeFIMPav6jlWsg8eufkwo9xqXaY8uOt4+Opmwyd8+ZAa2Mg C5RQytA8l3hx0R7Qd+dlHWpxaYYUqaYozt0ix7j0Fo5ikEvQ5iPPiT8+OdPZvI3jLuVZ 307g==
- In-reply-to: <151114143102.ZM1796@torch.brasslantern.com>
- 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: <5D52817D-628A-47F2-85CF-335B9F2CB61D@gmail.com> <151114143102.ZM1796@torch.brasslantern.com>
On 14 Nov 2015, at 17:31, Bart Schaefer wrote:
On Nov 14, 2:34pm, TJ Luoma wrote:
}
} Any help appreciated.
It would appear that some of your dot-files are being read or your
prompt would not have all that unexpanded promptsubst fodder in it.
That seems logical, right? But here's the weird thing:
$ echo;ls -l ~/.zs*;echo
zsh: no matches found: /Users/luomat/.zs*
No .zsh* files at all… except that the unexpanded PROMPT keeps showing
up.
Does this also affect a new shell started after iTerm is open? If
so, run as "zsh -x 2>zsh-err.txt" and then examine that file to
determine where things may be going wrong.
+/etc/zshenv:1> [ -x /usr/libexec/path_helper ']'
+/etc/zshenv:2> /usr/libexec/path_helper -s
+/etc/zshenv:2> eval
'PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin";'
export 'PATH;'
+(eval):1>
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin
+(eval):1> export PATH
+/etc/zshrc:2> [ Apple_Terminal '=' Apple_Terminal ']'
+/etc/zshrc:3> setopt combiningchars
Is there anything in /etc/zshenv ? Other than zsh being invoked
with the -f option, that file is the only place where sourcing of
~/.zshenv can be shut off.
$ cat /etc/zshenv
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
$ cat /etc/zshrc
# Correctly display UTF-8 with combining characters.
if [ "$TERM_PROGRAM" = "Apple_Terminal" ]; then
setopt combiningchars
fi
Here's another weird thing:
$ echo $ZDOTDIR
/Users/luomat/dotfiles/zsh
HOW IS THAT GETTING SET?!
It seems like there is some sort of phantom process hanging around
keeping my .zsh* in memory.
Maybe I'll try rebooting
{Reboots}
OK, _now_ I am seeing an empty prompt and no ZDOTDIR set.
{moves ~/.zshenv back into place and Reboots again}
OK, now everything is working fine. No un-expanded prompt.
What… The… Heck?
Gremlins?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author