ohmyzsh/plugins/mactex/mactex.plugin.zsh
Ian Chesal 1ac89fc57c First instance of the MacTeX plugin
Only ensures that the /usr/texbin and ~/texbin directories are on your
PATH if they're not already there. I'll expand it further to include
some help TeX-specific functions and aliases in the future.
2012-03-13 09:02:50 -04:00

9 lines
No EOL
196 B
Bash

LATEX=`which latex`
if [[ $LATEX == 'latex not found' ]] ; then
if [ -d /usr/texbin ] ; then
export PATH=/usr/texbin:${PATH}
fi
if [ -d ~/texbin ] ; then
export PATH=~/texbin;${PATH}
fi
fi