Permalink
Browse files

Merge pull request #1122 from varunkvv/master

sublime pluginn : Added alias for Sublime Text 2 on Linux
  • Loading branch information...
2 parents 76feafc + 8923694 commit 0370de582bf25a83a3391113d2c6a854b08a8eb1 @robbyrussell robbyrussell committed Jul 3, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 plugins/sublime/sublime.plugin.zsh
View
8 plugins/sublime/sublime.plugin.zsh 100644 → 100755
@@ -1,3 +1,9 @@
# Sublime Text 2 Aliases
-alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
+#unamestr = 'uname'
+
+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 0370de5

Please sign in to comment.