diff options
author | Pete "Peteches" McCabe <peteches@petemccabe.gb.net> | 2014-12-12 17:37:35 +0000 |
---|---|---|
committer | Pete "Peteches" McCabe <peteches@petemccabe.gb.net> | 2014-12-12 17:37:35 +0000 |
commit | 1d2c1e8ab80922fb673a08440a8e2b33b9231de1 (patch) | |
tree | 850a5eff19a0db0cb6b088ebded7db93c1a4b26b | |
parent | 43aa3783f8a5606e0f884a43d51daf36553af1e4 (diff) | |
download | zsh-1d2c1e8ab80922fb673a08440a8e2b33b9231de1.tar.gz zsh-1d2c1e8ab80922fb673a08440a8e2b33b9231de1.tar.bz2 zsh-1d2c1e8ab80922fb673a08440a8e2b33b9231de1.zip |
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.
-rw-r--r-- | plugins/web-search/web-search.plugin.zsh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh index 371e3a303..28559deb9 100644 --- a/plugins/web-search/web-search.plugin.zsh +++ b/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 } |