Permalink
Browse files

Fixed a bug in checking the platform

  • Loading branch information...
1 parent 6f859c5 commit 8923694fb42393d063487203e803199b394bbb47 @varunv varunv committed May 24, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 plugins/sublime/sublime.plugin.zsh
View
9 plugins/sublime/sublime.plugin.zsh 100644 → 100755
@@ -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 .'

0 comments on commit 8923694

Please sign in to comment.