From 10f4bec7995b1028195da83c87019040ff433f80 Mon Sep 17 00:00:00 2001 From: "A. Chavali" Date: Fri, 20 Dec 2019 20:01:59 +0000 Subject: ~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 --- zshenv | 3 +-- 1 file changed, 1 insertion(+), 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 () { -- cgit v1.2.3-13-gbd6f