aboutsummaryrefslogtreecommitdiff
path: root/websearch
blob: 12bf2f56e3df59ccfffadc137e4b387247bd33f1 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Perform a web search

browser=${BROWSER:-firefox}
searchengine="https://duckduckgo.com/?q="
# For google: https://www.google.com/search?q=

arg=$(echo "$@" | sed 's/ /\+/g')
[ -n "$arg" ] && spawn "$browser" "${searchengine}$arg"

Generated with cgit - Back to sebastiano.tronto.net