summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xexamples/search.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/search.sh b/examples/search.sh
new file mode 100755
index 0000000..ab4cca2
--- /dev/null
+++ b/examples/search.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+BROWSER=${BROWSER:-w3m}
+URL="https://html.duckduckgo.com/html/?q="
+
+$BROWSER "${URL}$(urlenc "$@")"