From 373195efd6e6215031eceb5c9ac9b29e2ca50844 Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Sat, 7 Dec 2013 19:51:22 -0700 Subject: [PATCH 1/2] Detect / Launch both Sublime Text 2 and 3 --- plugins/sublime/subl.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sublime/subl.fish b/plugins/sublime/subl.fish index 3693d2f..35c4ac4 100644 --- a/plugins/sublime/subl.fish +++ b/plugins/sublime/subl.fish @@ -3,5 +3,7 @@ function subl --description 'Open Sublime Text' "/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 + else + echo "No Sublime Text installation found" end end From 6986fb1c2db3055f24b4d8f0a251d4f692171229 Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Wed, 11 Dec 2013 15:59:32 -0700 Subject: [PATCH 2/2] Implement subl for Linux (assuming a standard .deb install of v3) --- plugins/sublime/subl.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sublime/subl.fish b/plugins/sublime/subl.fish index 35c4ac4..949f7e4 100644 --- a/plugins/sublime/subl.fish +++ b/plugins/sublime/subl.fish @@ -3,6 +3,8 @@ function subl --description 'Open Sublime Text' "/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 + else if test -x "/opt/sublime_text/sublime_text" + "/opt/sublime_text/sublime_text" $argv else echo "No Sublime Text installation found" end