test that application exists before trying to call it

pull/2/head
Jonathan Knapp 11 years ago
parent 1321ddc844
commit 13582d8d2b

@ -1,3 +1,5 @@
function subl --description 'Open Sublime Text 2'
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv
if test -d "/Applications/Sublime Text 2.app"
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv
end
end

Loading…
Cancel
Save