mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
test that application exists before trying to call it
This commit is contained in:
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
Block a user