diff --git a/plugins/sublime/subl.fish b/plugins/sublime/subl.fish index 89fc3a2..3693d2f 100644 --- a/plugins/sublime/subl.fish +++ b/plugins/sublime/subl.fish @@ -1,5 +1,7 @@ -function subl --description 'Open Sublime Text 2' - if test -d "/Applications/Sublime Text 2.app" +function subl --description 'Open Sublime Text' + if test -d "/Applications/Sublime Text.app" + "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" $argv + else if test -d "/Applications/Sublime Text 2.app" "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv end end