From 2038421b991ae7a195fcb7d7c54447559cf21062 Mon Sep 17 00:00:00 2001 From: Mark Derricutt Date: Fri, 13 Dec 2013 11:16:14 +1300 Subject: [PATCH] Updated Sublime Plugin to support version 3 Sublime Version 3 drops the version number from the application path, so if you enable this, and use 3 - the existing plugin would silently fail. --- plugins/sublime/subl.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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