Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 28c59cb2f8ca4a4f3b388c559ef7a67c27895915 1 parent d05b201
@kugaevsky authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 plugins/sublime/sublime.plugin.zsh
View
6 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 .'
+
Please sign in to comment.
Something went wrong with that request. Please try again.