On OSX, the sublime plugin checks for various possible locations of the
Sublime Text application; on Linux, however, only two spots are covered.
This change uses the same detection mechanism used for OSX for Linux
systems to check for the typical install locations:
$HOME/bin/sublime_text
/usr/local/bin/sublime_text
/usr/bin/sublime_text
This allows non-root users on Linux systems to use the plugin without
hassle.
- Fixed subl search path order in Mac because Sublime Text 3 is named
Sublime Text.app by default instead of Sublime Text 3.app and they are
mostly likely to be placed in /Applications instead of
$HOME/Applications.
- Fixed sublime text binary path in Linux. The sublime_text binary
installed by Ubuntu installer is placed in /opt/sublime_text/sublime_text
instead of /usr/bin/sublime_text.
- Use zsh's built-in process detach syntax instead of nohup.
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.
Detects the platform using "uname", and sets the alias accordingly.
If you are using Linux, this assumes that you have created a
symbolic link to /usr/bin/sublime_text.