17a092b0ffa1ecf4ef9f727054a414e26f9e1edd
Author Kaiwen Xu <kevin@kevxu.net> Committer Kaiwen Xu <kevin@kevxu.net> Date 2013-04-29 07:19 UTC
Message Change sublime text path select priority on mac.
User changed symbolic link for sublime binary is now top priority,
since this allows users to actually specify which version of sublime
they want to use. Sublime text 2 binary has higher priority over
sublime text (3) binary, since sublime text 2 is considered more
stable.
Diff 1 diff --git a/plugins/sublime/sublime.plugin.zsh b/plugins/sublime/sublime.plugin.zsh
2 index e74695de0c26ed5e634f22a0605421400ef5e0ff..82faf87c92db550f1e667958c9e70176b278c76e 100755
3 --- a/plugins/sublime/sublime.plugin.zsh
4 +++ b/plugins/sublime/sublime.plugin.zsh
5 @@ -2,10 +2,11 @@
6
7 local _sublime_darwin_paths > /dev/null 2>&1
8 _sublime_darwin_paths=(
9 - "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
10 + "/usr/local/bin/subl"
11 "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
12 - "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
13 + "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
14 "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
15 + "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
16 )
17
18 if [[ $('uname') == 'Linux' ]]; then