diff options
author | Robby Russell <robby@planetargon.com> | 2013-12-01 13:49:19 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-12-01 13:49:19 -0800 |
commit | d51cb6d385b934207c163049df35025234d5b849 (patch) | |
tree | 767b82df3a5400c8944a766c3dcd385fd6b55501 /plugins | |
parent | b6c6a5a5e6b22a8633ff7d853beee89376ce48a3 (diff) | |
parent | ae1fe0029c63debfe44dcba52761389c6c876b31 (diff) | |
download | zsh-d51cb6d385b934207c163049df35025234d5b849.tar.gz zsh-d51cb6d385b934207c163049df35025234d5b849.tar.bz2 zsh-d51cb6d385b934207c163049df35025234d5b849.zip |
Merge pull request #2260 from Stibbons/gsemet_push_sublime3_support2
Add support for sublime 3
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/sublime/sublime.plugin.zsh | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/plugins/sublime/sublime.plugin.zsh b/plugins/sublime/sublime.plugin.zsh index 72f56754c..566279183 100755 --- a/plugins/sublime/sublime.plugin.zsh +++ b/plugins/sublime/sublime.plugin.zsh @@ -2,30 +2,32 @@ local _sublime_darwin_paths > /dev/null 2>&1 _sublime_darwin_paths=( - "/usr/local/bin/subl" - "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" - "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" - "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" - "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" + "/usr/local/bin/subl" + "$HOME/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl" + "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" + "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" + "/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl" + "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" + "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ) if [[ $('uname') == 'Linux' ]]; then - if [ -f '/usr/bin/sublime_text' ]; then - st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & } - else - st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & } - fi - alias st=st_run + if [ -f '/usr/bin/sublime_text' ]; then + st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & } + else + st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & } + fi + alias st=st_run elif [[ $('uname') == 'Darwin' ]]; then - for _sublime_path in $_sublime_darwin_paths; do - if [[ -a $_sublime_path ]]; then - alias subl="'$_sublime_path'" - alias st=subl - break - fi - done + for _sublime_path in $_sublime_darwin_paths; do + if [[ -a $_sublime_path ]]; then + alias subl="'$_sublime_path'" + alias st=subl + break + fi + done fi alias stt='st .' |