Browse Source

Update plugins/sublime/sublime.plugin.zsh

Considering the situation when installing sublime text via apt-get (WebUpd8 Sublime Text 2 PPA)
汤凯 Kevin Tong 12 years ago
parent
commit
19aefa2bd6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      plugins/sublime/sublime.plugin.zsh

+ 5 - 1
plugins/sublime/sublime.plugin.zsh

@@ -2,7 +2,11 @@
 #unamestr = 'uname'
 
 if [[ $('uname') == 'Linux' ]]; then
-	alias st='/usr/bin/sublime_text&'
+	if [ -f '/usr/bin/sublime_text' ]; then
+		alias st='/usr/bin/sublime_text&'
+	else
+		alias st='/usr/bin/sublime-text&'
+	fi
 elif  [[ $('uname') == 'Darwin' ]]; then
 	alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
 fi