From 1ac89fc57c26c806663bdfea6ddf7a5c312c7991 Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Wed, 8 Feb 2012 18:26:26 -0500 Subject: [PATCH 1/2] 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 From 47a4798218a1f646662ff6431f2281853f0a42cf Mon Sep 17 00:00:00 2001 From: Ian Chesal Date: Wed, 7 Mar 2012 17:03:55 -0500 Subject: [PATCH 2/2] First instance of the Sublime Text 2 plugin * Sets up PATH on OS X for subl access if it's not already there * Adds some handle aliases for working with ST2 from the command line More to come! --- .../sublime-text-2/sublime-text-2.plugin.zsh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 plugins/sublime-text-2/sublime-text-2.plugin.zsh diff --git a/plugins/sublime-text-2/sublime-text-2.plugin.zsh b/plugins/sublime-text-2/sublime-text-2.plugin.zsh new file mode 100644 index 000000000..7e191dcee --- /dev/null +++ b/plugins/sublime-text-2/sublime-text-2.plugin.zsh @@ -0,0 +1,20 @@ +# sublime-text-2.plugin.zsh +# +# An oh-my-zsh plugin for Sublime Text 2 +# Primarily targetted at OS X ST2 users but this might work for +# Linux as well. +# +SUBL=`which subl` +if [[ $SUBL == 'subl not found' ]] ; then + if [[ `uname` == 'Darwin' ]] ; then + if [ -d /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin ] ; then + export PATH=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin:${PATH} + fi + if [ -d ~/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin ] ; then + export PATH=~/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin;${PATH} + fi + fi +fi + +alias st='subl' +alias stzsh='subl ~/.zshrc' \ No newline at end of file