2013-12-12 22:16:14 +00:00
|
|
|
function subl --description 'Open Sublime Text'
|
|
|
|
if test -d "/Applications/Sublime Text.app"
|
|
|
|
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" $argv
|
|
|
|
else if test -d "/Applications/Sublime Text 2.app"
|
2013-08-08 17:46:15 +00:00
|
|
|
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv
|
2014-10-28 23:05:38 +00:00
|
|
|
else if test -d "$HOME/Applications/Sublime Text.app"
|
|
|
|
eval "$HOME/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" $argv
|
|
|
|
else if test -d "$HOME/Applications/Sublime Text 2.app"
|
|
|
|
eval "$HOME/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl" $argv
|
2013-12-11 22:59:32 +00:00
|
|
|
else if test -x "/opt/sublime_text/sublime_text"
|
|
|
|
"/opt/sublime_text/sublime_text" $argv
|
2014-08-21 17:17:44 +00:00
|
|
|
else if test -x "/opt/sublime_text_3/sublime_text"
|
|
|
|
"/opt/sublime_text_3/sublime_text" $argv
|
2013-12-08 02:51:22 +00:00
|
|
|
else
|
|
|
|
echo "No Sublime Text installation found"
|
2013-08-08 17:46:15 +00:00
|
|
|
end
|
2013-07-16 02:20:12 +00:00
|
|
|
end
|