oh-my-fish/plugins/sublime/subl.fish
Mark Derricutt 2038421b99 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.
2013-12-13 11:16:14 +13:00

8 lines
309 B
Fish

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"
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv
end
end