web-search plugin: unwanted output to nohup.out

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’?
This commit is contained in:
Alessandro Pezzato 2014-09-05 00:21:38 +02:00
commit 94c01229ff

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 </dev/null &
}