浏览代码

Fixed a bug in checking the platform

Varun Vijayaraghavan 13 年之前
父节点
当前提交
8923694fb4
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      plugins/sublime/sublime.plugin.zsh

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

@@ -1,8 +1,9 @@
 # Sublime Text 2 Aliases
 #unamestr = 'uname'
-if [[ uname == 'Linux' ]]; then
-	alias st='open -a /usr/bin/sublime_text'
-elif  [[ uname == 'Darwin' ]]; then
-	alias st='open -a "/Applications/Sublime Text 2.app'
+
+if [[ $('uname') == 'Linux' ]]; then
+	alias st='/usr/bin/sublime_text&'
+elif  [[ $('uname') == 'Darwin' ]]; then
+	alias st='open -a /Applications/Sublime Text 2.app'
 fi
 alias stt='st .'