mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-27 00:00:08 +00:00
fix(websearch): allow multi-word parameters
This commit is contained in:
parent
7bbebcd520
commit
eeb01c18c1
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ function web_search() {
|
|||
|
||||
# build search url:
|
||||
# join arguments passed with '+', then append to search engine URL
|
||||
url="${urls[$1]}$(omz_urlencode $param ${@[2,-1]})"
|
||||
url="${urls[$1]}$(omz_urlencode $param ${(s: :)@[2,-1]})"
|
||||
else
|
||||
# build main page url:
|
||||
# split by '/', then rejoin protocol (1) and domain (2) parts with '//'
|
||||
|
|
Loading…
Reference in a new issue