Skip to content
Browse files

Add Sublime Text 2 alias for Linux.

Detects the platform using "uname", and sets the alias accordingly.
If you are using Linux, this assumes that you have created a
symbolic link to /usr/bin/sublime_text.
  • Loading branch information...
1 parent 3fdaf26 commit 6f859c5837753a87544b2672678e36bcf167cc82 @varunv varunv committed May 21, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 plugins/sublime/sublime.plugin.zsh
View
7 plugins/sublime/sublime.plugin.zsh
@@ -1,3 +1,8 @@
# Sublime Text 2 Aliases
-alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
+#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'
+fi
alias stt='st .'

0 comments on commit 6f859c5

Please sign in to comment.
Something went wrong with that request. Please try again.