mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 22:00:08 +00:00
Run Web-search as a Background Process with Nohup
This commit is contained in:
parent
5728a5608d
commit
db3dd6d755
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
# web_search from terminal
|
# web_search from terminal
|
||||||
|
|
||||||
function web_search() {
|
function web_search() {
|
||||||
|
|
||||||
# get the open command
|
# get the open command
|
||||||
local open_cmd
|
local open_cmd
|
||||||
if [[ $(uname -s) == 'Darwin' ]]; then
|
if [[ $(uname -s) == 'Darwin' ]]; then
|
||||||
|
@ -38,8 +37,8 @@ function web_search() {
|
||||||
done
|
done
|
||||||
|
|
||||||
url="${url%?}" # remove the last '+'
|
url="${url%?}" # remove the last '+'
|
||||||
|
nohup $open_cmd "$url"
|
||||||
$open_cmd "$url"
|
rm nohup.out
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue