diff options
author | Guerki <pol.guerkinger@gmail.com> | 2014-07-29 09:21:10 +0200 |
---|---|---|
committer | Guerki <pol.guerkinger@gmail.com> | 2014-07-29 09:21:10 +0200 |
commit | db3dd6d755776daf19b55f6a1cae080ae684030a (patch) | |
tree | d591932e382a7f72f1f51f5f578958bf790cfdda /plugins | |
parent | 5728a5608d7e802999266ff2387747e4957be938 (diff) | |
download | zsh-db3dd6d755776daf19b55f6a1cae080ae684030a.tar.gz zsh-db3dd6d755776daf19b55f6a1cae080ae684030a.tar.bz2 zsh-db3dd6d755776daf19b55f6a1cae080ae684030a.zip |
Run Web-search as a Background Process with Nohup
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/web-search/web-search.plugin.zsh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh index 8eedb90ee..e157a389d 100644 --- a/plugins/web-search/web-search.plugin.zsh +++ b/plugins/web-search/web-search.plugin.zsh @@ -1,7 +1,6 @@ # web_search from terminal function web_search() { - # get the open command local open_cmd if [[ $(uname -s) == 'Darwin' ]]; then @@ -38,8 +37,8 @@ function web_search() { done url="${url%?}" # remove the last '+' - - $open_cmd "$url" + nohup $open_cmd "$url" + rm nohup.out } |