From 1ac89fc57c26c806663bdfea6ddf7a5c312c7991 Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Wed, 8 Feb 2012 18:26:26 -0500 Subject: [PATCH] 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. --- plugins/mactex/mactex.plugin.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 plugins/mactex/mactex.plugin.zsh diff --git a/plugins/mactex/mactex.plugin.zsh b/plugins/mactex/mactex.plugin.zsh new file mode 100644 index 000000000..78280f91a --- /dev/null +++ b/plugins/mactex/mactex.plugin.zsh @@ -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 \ No newline at end of file