From f7a1e403130a3103cf89ce281083d63c160db5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matja=C5=BE=20Drolc?= Date: Sat, 12 Oct 2013 19:02:05 +0200 Subject: [PATCH] Adding /usr/bin/subl as one of Linux paths In some Linux distributions Sublime Text 3 is installed to /usr/bin/subl. --- plugins/sublime/sublime.plugin.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/sublime/sublime.plugin.zsh b/plugins/sublime/sublime.plugin.zsh index 72f56754c..db58f1052 100755 --- a/plugins/sublime/sublime.plugin.zsh +++ b/plugins/sublime/sublime.plugin.zsh @@ -12,8 +12,10 @@ _sublime_darwin_paths=( if [[ $('uname') == 'Linux' ]]; then if [ -f '/usr/bin/sublime_text' ]; then st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & } - else + elif [ -f '/usr/bin/sublime-text' ]; then st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & } + else + st_run() { nohup /usr/bin/subl $@ > /dev/null & } fi alias st=st_run