From 94c01229ffd864ff7bd98fcd54413d0983e7d2c1 Mon Sep 17 00:00:00 2001 From: Alessandro Pezzato Date: Fri, 5 Sep 2014 00:21:38 +0200 Subject: [PATCH] web-search plugin: unwanted output to nohup.out MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When calling `google something`, a warning appears and it ask to remove nohup.out (interactive rm enabled). This fix avoid creating nohup.out nohup: ignoring input and appending output to ‘nohup.out’ rm: remove regular empty file ‘nohup.out’? --- plugins/web-search/web-search.plugin.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh index e157a389d..a4089754c 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