~no need for regex replace in search() function

Using a new query url ("duckduckgo.com/?=something"), I don't need to
replace all spaces with underscores as duckduckgo does it for me
This commit is contained in:
A. Chavali
2019-12-20 20:01:59 +00:00
parent 0f0897c0a1
commit 10f4bec799

3
zshenv
View File

@@ -45,8 +45,7 @@ gentemplateoff () {
# Web Querying # Web Querying
search () { search () {
search_query=${1// /_} web "duckduckgo.com/?q=$1"
web "duckduckgo.com/$search_query"
} }
web () { web () {