mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
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.
9 lines
No EOL
196 B
Bash
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 |