test that application exists before trying to call it

This commit is contained in:
Jonathan Knapp 2013-08-08 11:46:15 -06:00
parent 1321ddc844
commit 13582d8d2b

View File

@ -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