test that application exists before trying to call it
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…
Reference in New Issue