<br><br><div class="gmail_quote">2012/7/4 Herbert Schulz <span dir="ltr"><<a href="mailto:herbs@wideopenwest.com" target="_blank">herbs@wideopenwest.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
</div></div>Howdy,<br>
<br>
I just noticed that there is a /etc/zshenv file that does the right thing. Do you have some other file that you produced, e.g., /etc/zshrc (I don't know what the precedence of processing is with zsh), that prevents /etc/zshenv from being executed?<br>
<div class="im HOEnZb"><br>
Good Luck,<br>
<br>
Herb Schulz<br></div></blockquote><div><br></div><div>by me too /etc/zshrc is correct (reading /usr/libexec/path_helper)</div><div><br></div><div>however, if i put :</div><div><br></div><div>echo $PATH at the very begining of my ~/.zshrc i get only :</div>
<div> </div><div>/usr/bin:/bin:/usr/sbin:/sbin</div><div><br></div><div>my zsh is of MacPorts :</div><div><br></div><div>$ which zsh</div><div>/opt/local/bin/zsh</div><div><br></div><div>and i do have an /etc/zshrc :</div>
<div><br></div><div>$ cat /etc/zshrc</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>#################################################</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>#################################################</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span># #</div><div><span class="Apple-tab-span" style="white-space:pre"> </span># /etc/zshrc #</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span># #</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>#################################################</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>#################################################</div><div><br></div><div><br></div><div># File: /etc/zshrc</div><div># Version: 2.0.0</div><div><br></div>
<div><snip /></div><div><br></div><div># This file, and those sourced from within it, will not be read with zsh -f</div><div> </div>
<div>##############################################################################</div><div>######################### zshrc.d ###########################</div><div>##############################################################################</div>
<div><br></div><div># Put any modified directives for the systemwide zshrc in files within </div><div># ${ZDOT}/zshrc.d</div><div># See ${ZDOT}/zshrc.d/README for additional information.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>if [[ -d "${ZDOT}/zshrc.d" ]]; then</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>foreach file in $(command ls -d ${ZDOT}/zshrc.d/* | grep -v disabled | \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> grep -v README | grep -v environment.xtal | \</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span> grep -v local-functions | grep -v prompt )</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> source $file</div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span>end</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>fi</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div>
############################################################################## </div><div><br></div><div>############################################################################## </div><div>#################### zshrc_local.d ########################## </div>
<div>############################################################################## </div><div><br></div><div># Put any additional directives for the systemwide zshrc in files within </div><div># ${ZDOT}/zshrc_local.d . This directory is empty when distributed. Its </div>
<div># contents are run after everything in zshenv.d and zshrc.d .</div><div># See ${ZDOT}/zshrc_local.d/README for additional information.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>if [[ -d "${ZDOT}/zshrc_local.d" ]]; then</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>foreach file in $(command ls -d ${ZDOT}/zshrc_local.d/* | grep -v disabled | \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> grep -v README | grep -v site-functions )</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span> source $file</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>end</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>fi</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div>##############################################################################</div><div> </div>
<div>##############################################################################</div><div>########## zshrc_local.d/site-functions ######################</div><div>##############################################################################</div>
<div><br></div><div># Put any additional functions for the systemwide zshrc in files within </div><div># ${ZDOT}/zshrc_local.d/site-functions . This directory is empty when </div><div># distributed. Its contents are run after everything in zshenv.d and zshrc.d</div>
<div># See ${ZDOT}/zshrc_local.d/README for additional information.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>if [[ -d "${ZDOT}/zshrc_local.d/site-functions" ]]; then</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span> if (( $( command ls -1 ${ZDOT}/zshrc_local.d/site-functions/* |wc -l ) > 1 )); then</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> # Add the function directory to the head of $FPATH</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span> FPATH=${ZDOT}/zshrc_local.d/site-functions:${FPATH}</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> export FPATH</div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span> typeset -U path manpath fpath</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> # Autload every function in the site-functions directory</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>foreach fxnfile in $(command ls -d ${ZDOT}/zshrc_local.d/site-functions/* | grep -v README )</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> autoload -U $(basename $fxnfile)</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>end</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>fi<span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>fi</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div>##############################################################################</div>
<div><br></div><div><br></div><div><br></div><div># The user's own directives can be put into ~/.zshrc</div><div><br></div></div>BUT notice $ZDOT is empty.<div><br></div><div>Nothing for zsh in /opt/local/etc</div><div>
<br></div><div>changing the shell to the one of Apple /bin/zsh, doesn't change anything...</div><div><br></div><div>clearly this isn't a MacTex prob, I'll ask on usenet...</div><div><br></div>