diff options
author | A. Chavali <aryadevchavali1@gmail.com> | 2019-12-20 20:01:59 +0000 |
---|---|---|
committer | A. Chavali <aryadevchavali1@gmail.com> | 2019-12-20 20:10:39 +0000 |
commit | 10f4bec7995b1028195da83c87019040ff433f80 (patch) | |
tree | 860774668f4cb0678c55c885a9e34ad35d46e8fd | |
parent | 0f0897c0a141f76db6a01878e32e75a4884307ba (diff) | |
download | dotfiles-10f4bec7995b1028195da83c87019040ff433f80.tar.gz dotfiles-10f4bec7995b1028195da83c87019040ff433f80.tar.bz2 dotfiles-10f4bec7995b1028195da83c87019040ff433f80.zip |
~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
-rw-r--r-- | zshenv | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -45,8 +45,7 @@ gentemplateoff () { # Web Querying search () { - search_query=${1// /_} - web "duckduckgo.com/$search_query" + web "duckduckgo.com/?q=$1" } web () { |