Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
db3dd6d7
Commit
db3dd6d7
authored
Jul 29, 2014
by
Guerki
Browse files
Run Web-search as a Background Process with Nohup
parent
5728a560
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/web-search/web-search.plugin.zsh
View file @
db3dd6d7
# 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() {
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment