|
|
|
@ -35,7 +35,7 @@ function web_search() { |
|
|
|
if [[ $# -gt 1 ]]; then |
|
|
|
if [[ $# -gt 1 ]]; then |
|
|
|
# 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 |
|
|
|
url="${urls[$1]}${(j:+:)@[2,-1]}" |
|
|
|
url="${urls[$1]}$(omz_urlencode ${@[2,-1]})" |
|
|
|
else |
|
|
|
else |
|
|
|
# build main page url: |
|
|
|
# build main page url: |
|
|
|
# split by '/', then rejoin protocol (1) and domain (2) parts with '//' |
|
|
|
# split by '/', then rejoin protocol (1) and domain (2) parts with '//' |
|
|
|
|