Update bin/duckduckgo

This commit is contained in:
Henrik Lissner 2017-07-03 23:03:48 +02:00
parent 0a8ff2171b
commit 1082a22197
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash #!/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" echo "Opening https://duckduckgo.com/?q=$query"
open "https://duckduckgo.com/?q=$query" open "https://duckduckgo.com/?q=$query"