diff --git a/plugins/sublime/subl.fish b/plugins/sublime/subl.fish index 3f03ca9..89fc3a2 100644 --- a/plugins/sublime/subl.fish +++ b/plugins/sublime/subl.fish @@ -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