db3dd6d755776daf19b55f6a1cae080ae684030a

Author
Guerki <pol.guerkinger@gmail.com>
Committer
Guerki <pol.guerkinger@gmail.com>
Date

Message

Run Web-search as a Background Process with Nohup

Diff

 1diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh
 2index 8eedb90ee5fe0671a64370db859ae592672e5354..e157a389d3371ccda540ae3ee507406c60ba7a5c 100644
 3--- a/plugins/web-search/web-search.plugin.zsh
 4+++ b/plugins/web-search/web-search.plugin.zsh
 5@@ -1,7 +1,6 @@
 6 # web_search from terminal
 7 
 8 function web_search() {
 9-
10   # get the open command
11   local open_cmd
12   if [[ $(uname -s) == 'Darwin' ]]; then
13@@ -38,8 +37,8 @@ function web_search() {
14   done
15 
16   url="${url%?}" # remove the last '+'
17-  
18-  $open_cmd "$url"
19+  nohup $open_cmd "$url" 
20+ 	rm nohup.out	
21 }
22 
23