dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 86fae308fe99eb24724294485777f3e1a168d1cb
parent f0eb67b6a0082f6a3fedffac908a76199009d931
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 22 Feb 2020 15:45:28 +0100

Initiate search if query contains space, otherwise go to uri via http

Diffstat:
M.local/bin/websearch | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.local/bin/websearch b/.local/bin/websearch @@ -39,7 +39,8 @@ case "$choice" in plumb "https://codemadness.org/idiotbox/?q=$(printf '%s' "$choice" | sed 's/!yt//')&o=relevance&m=Dark" fi ;; + *\ *) + plumb "https://duckduckgo.com/?q=$(printf '%s' "$choice" | sed 's/+/%2b/g')&kae=d&kau=-1&kao=-1&kap=-1&kaq=-1&kax=-1&kak=-1&kv=-1&kk=-1&k1=-1&kc=-1";; *) - plumb "https://duckduckgo.com/?q=$(printf '%s' "$choice" | sed 's/+/%2b/g')&kae=d&kau=-1&kao=-1&kap=-1&kaq=-1&kax=-1&kak=-1&kv=-1&kk=-1&k1=-1&kc=-1" - ;; + plumb "http://${choice}";; esac