Permalink
Browse files

Sublime plugin fix for Ubuntu

  - 'st' alias can take any arguments
  - closing terminal session doesn't affect running Sublime Text instances
  • Loading branch information...
1 parent d05b201 commit 28c59cb2f8ca4a4f3b388c559ef7a67c27895915 @kugaevsky committed Jul 22, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 plugins/sublime/sublime.plugin.zsh
@@ -2,8 +2,10 @@
#unamestr = 'uname'
if [[ $('uname') == 'Linux' ]]; then
- alias st='/usr/bin/sublime_text&'
+ runst() { nohup /usr/bin/sublime-text $@ > /dev/null & }
+ alias st=runst
elif [[ $('uname') == 'Darwin' ]]; then
- alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
+ alias st='open -a /Applications/Sublime\ Text\ 2.app'
fi
alias stt='st .'
+

0 comments on commit 28c59cb

Please sign in to comment.