Updated Sublime Plugin to support version 3

Sublime Version 3 drops the version number from the application path,
so if you enable this, and use 3 - the existing plugin would
silently fail.
This commit is contained in:
Mark Derricutt 2013-12-13 11:16:14 +13:00
parent 14788bcd4b
commit 2038421b99

View File

@ -1,5 +1,7 @@
function subl --description 'Open Sublime Text 2' function subl --description 'Open Sublime Text'
if test -d "/Applications/Sublime Text 2.app" 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"
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv
end end
end end