浏览代码

Update plugins/sublime/sublime.plugin.zsh

updated run sublime on linux with parameters
Viktor Gamov 12 年之前
父节点
当前提交
54f1990511
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      plugins/sublime/sublime.plugin.zsh

+ 3 - 2
plugins/sublime/sublime.plugin.zsh

@@ -3,10 +3,11 @@
 
 if [[ $('uname') == 'Linux' ]]; then
 	if [ -f '/usr/bin/sublime_text' ]; then
-		alias st='/usr/bin/sublime_text&'
+		st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
 	else
-		alias st='/usr/bin/sublime-text&'
+		st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
 	fi
+alias st=st_run
 elif  [[ $('uname') == 'Darwin' ]]; then
 	alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
 fi