Update plugins/sublime/sublime.plugin.zsh

Considering the situation when installing sublime text via apt-get (WebUpd8 Sublime Text 2 PPA)
This commit is contained in:
汤凯 Kevin Tong 2012-11-05 16:55:55 +08:00
parent c2ae9e09ca
commit 19aefa2bd6

View file

@ -2,7 +2,11 @@
#unamestr = 'uname' #unamestr = 'uname'
if [[ $('uname') == 'Linux' ]]; then if [[ $('uname') == 'Linux' ]]; then
if [ -f '/usr/bin/sublime_text' ]; then
alias st='/usr/bin/sublime_text&' alias st='/usr/bin/sublime_text&'
else
alias st='/usr/bin/sublime-text&'
fi
elif [[ $('uname') == 'Darwin' ]]; then elif [[ $('uname') == 'Darwin' ]]; then
alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
fi fi