aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Chavali <aryadevchavali1@gmail.com>2019-12-20 20:01:59 +0000
committerA. Chavali <aryadevchavali1@gmail.com>2019-12-20 20:10:39 +0000
commit10f4bec7995b1028195da83c87019040ff433f80 (patch)
tree860774668f4cb0678c55c885a9e34ad35d46e8fd
parent0f0897c0a141f76db6a01878e32e75a4884307ba (diff)
downloaddotfiles-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--zshenv3
1 files changed, 1 insertions, 2 deletions
diff --git a/zshenv b/zshenv
index ecd7a85..ffdc041 100644
--- a/zshenv
+++ b/zshenv
@@ -45,8 +45,7 @@ gentemplateoff () {
# Web Querying
search () {
- search_query=${1// /_}
- web "duckduckgo.com/$search_query"
+ web "duckduckgo.com/?q=$1"
}
web () {