Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1122 from varunkvv/master

sublime pluginn : Added alias for Sublime Text 2 on Linux
  • Loading branch information...
commit 0370de582bf25a83a3391113d2c6a854b08a8eb1 2 parents 76feafc + 8923694
@robbyrussell robbyrussell authored
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 .'
Please sign in to comment.
Something went wrong with that request. Please try again.