]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/plugins/sublime/sublime.plugin.zsh
Squashed commit of the following + cleanup afterwards:
[dotfiles.git] / zsh / plugins / sublime / sublime.plugin.zsh
index 9af70e7de8381b18615123b47b6117cfe5033935..1b2cbcdce16ce101454ea8a931f4416926c90efc 100755 (executable)
@@ -5,10 +5,11 @@ local _sublime_darwin_subl=/Applications/Sublime\ Text\ 2.app/Contents/SharedSup
 
 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
        # Check if Sublime is installed in user's home application directory
        if [[ -a $HOME/${_sublime_darwin_subl} ]]; then