[OS X TeX] les bins MacteX ne sont pas dans le PATH ?
Yvon Thoraval
yvon.ubuntu at gmail.com
Wed Jul 4 12:41:40 EDT 2012
2012/7/4 Herbert Schulz <herbs at wideopenwest.com>
>
>
> Howdy,
>
> 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?
>
> Good Luck,
>
> Herb Schulz
>
by me too /etc/zshrc is correct (reading /usr/libexec/path_helper)
however, if i put :
echo $PATH at the very begining of my ~/.zshrc i get only :
/usr/bin:/bin:/usr/sbin:/sbin
my zsh is of MacPorts :
$ which zsh
/opt/local/bin/zsh
and i do have an /etc/zshrc :
$ cat /etc/zshrc
#################################################
#################################################
# #
# /etc/zshrc #
# #
#################################################
#################################################
# File: /etc/zshrc
# Version: 2.0.0
<snip />
# This file, and those sourced from within it, will not be read with zsh
-f
##############################################################################
######################### zshrc.d
###########################
##############################################################################
# Put any modified directives for the systemwide zshrc in files within
# ${ZDOT}/zshrc.d
# See ${ZDOT}/zshrc.d/README for additional information.
if [[ -d "${ZDOT}/zshrc.d" ]]; then
foreach file in $(command ls -d ${ZDOT}/zshrc.d/* | grep -v disabled | \
grep -v README | grep -v environment.xtal | \
grep -v local-functions | grep -v prompt )
source $file
end
fi
##############################################################################
##############################################################################
#################### zshrc_local.d
##########################
##############################################################################
# Put any additional directives for the systemwide zshrc in files within
# ${ZDOT}/zshrc_local.d . This directory is empty when distributed. Its
# contents are run after everything in zshenv.d and zshrc.d .
# See ${ZDOT}/zshrc_local.d/README for additional information.
if [[ -d "${ZDOT}/zshrc_local.d" ]]; then
foreach file in $(command ls -d ${ZDOT}/zshrc_local.d/* | grep -v disabled
| \
grep -v README | grep -v site-functions )
source $file
end
fi
##############################################################################
##############################################################################
########## zshrc_local.d/site-functions
######################
##############################################################################
# Put any additional functions for the systemwide zshrc in files within
# ${ZDOT}/zshrc_local.d/site-functions . This directory is empty when
# distributed. Its contents are run after everything in zshenv.d and
zshrc.d
# See ${ZDOT}/zshrc_local.d/README for additional information.
if [[ -d "${ZDOT}/zshrc_local.d/site-functions" ]]; then
if (( $( command ls -1 ${ZDOT}/zshrc_local.d/site-functions/* |wc -l
) > 1 )); then
# Add the function directory to the head of $FPATH
FPATH=${ZDOT}/zshrc_local.d/site-functions:${FPATH}
export FPATH
typeset -U path manpath fpath
# Autload every function in the site-functions directory
foreach fxnfile in $(command ls -d ${ZDOT}/zshrc_local.d/site-functions/* |
grep -v README )
autoload -U $(basename $fxnfile)
end
fi
fi
##############################################################################
# The user's own directives can be put into ~/.zshrc
BUT notice $ZDOT is empty.
Nothing for zsh in /opt/local/etc
changing the shell to the one of Apple /bin/zsh, doesn't change anything...
clearly this isn't a MacTex prob, I'll ask on usenet...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20120704/092377f5/attachment.html>
More information about the MacOSX-TeX
mailing list