浏览代码

Fixed output issues webith websearch plugin.

- if user has rm set as an alias to 'rm -i' user is prompted to whether to
  remove the nohup.out file.

 $ ddg fools
	nohup: ignoring input and appending output to ‘nohup.out’
	rm: remove regular empty file ‘nohup.out’?

- if output redirected to a file nohup will not create nohup.out and rm is
  unecessary.
Pete "Peteches" McCabe 9 年之前
父节点
当前提交
1d2c1e8ab8
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      plugins/web-search/web-search.plugin.zsh

+ 1 - 2
plugins/web-search/web-search.plugin.zsh

@@ -37,8 +37,7 @@ function web_search() {
   done
 
   url="${url%?}" # remove the last '+'
-  nohup $open_cmd "$url" 
- 	rm nohup.out	
+  nohup $open_cmd "$url" >/dev/null 2&>1
 }