From 1082a22197e8db2d73cebaacbdbfb01d37c0d287 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 3 Jul 2017 23:03:48 +0200 Subject: [PATCH] Update bin/duckduckgo --- bin/duckduckgo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/duckduckgo b/bin/duckduckgo index fd296bdd..81877e5c 100755 --- a/bin/duckduckgo +++ b/bin/duckduckgo @@ -1,5 +1,9 @@ #!/usr/bin/env bash -query=$(urlencode <<< "$*") +# Runs a duckduckgo.com search. +# +# Requires: uri (script in the same folder) + +query=$(uri <<< "$*") echo "Opening https://duckduckgo.com/?q=$query" open "https://duckduckgo.com/?q=$query"