mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-16 02:40:08 +00:00
parent
883da63320
commit
43613d7b71
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ function web_search() {
|
||||||
# if search goes in the query string ==> space as +, otherwise %20
|
# if search goes in the query string ==> space as +, otherwise %20
|
||||||
# see https://stackoverflow.com/questions/1634271/url-encoding-the-space-character-or-20
|
# see https://stackoverflow.com/questions/1634271/url-encoding-the-space-character-or-20
|
||||||
local param="-P"
|
local param="-P"
|
||||||
[[ "$urls[$1]" =~ .*\?.*=$ ]] && param=""
|
[[ "$urls[$1]" == *\?*= ]] && param=""
|
||||||
|
|
||||||
# build search url:
|
# build search url:
|
||||||
# join arguments passed with '+', then append to search engine URL
|
# join arguments passed with '+', then append to search engine URL
|
||||||
|
|
Loading…
Reference in a new issue