1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

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.
This commit is contained in:
Pete "Peteches" McCabe 2014-12-12 17:37:35 +00:00
parent 43aa3783f8
commit 1d2c1e8ab8

View file

@ -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
}