mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
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:
parent
ffe8ce5b1e
commit
94c01229ff
1 changed files with 1 additions and 2 deletions
|
|
@ -37,8 +37,7 @@ function web_search() {
|
||||||
done
|
done
|
||||||
|
|
||||||
url="${url%?}" # remove the last '+'
|
url="${url%?}" # remove the last '+'
|
||||||
nohup $open_cmd "$url"
|
nohup $open_cmd "$url" &>/dev/null </dev/null &
|
||||||
rm nohup.out
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue