mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
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.
This commit is contained in:
parent
362927003b
commit
7b8c56300e
1 changed files with 9 additions and 0 deletions
9
plugins/mactex/mactex.plugin.zsh
Normal file
9
plugins/mactex/mactex.plugin.zsh
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue