mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge 47a4798218 into 5667161d49
This commit is contained in:
commit
3e1e69d762
2 changed files with 29 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
|
||||||
20
plugins/sublime-text-2/sublime-text-2.plugin.zsh
Normal file
20
plugins/sublime-text-2/sublime-text-2.plugin.zsh
Normal file
|
|
@ -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'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue