aboutsummaryrefslogtreecommitdiff
path: root/websearch
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-06-26 14:58:59 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-06-26 14:58:59 +0200
commit026bcfc65687ba14299ea2f553940f62388874ce (patch)
treeb539ae07143815efbd1a428ded45b703b33bb4e1 /websearch
parent25461147e74904e566519c87dcb28b3bbf49b127 (diff)
downloadscripts-026bcfc65687ba14299ea2f553940f62388874ce.tar.gz
scripts-026bcfc65687ba14299ea2f553940f62388874ce.zip
Changed search engine to startpage
Diffstat (limited to '')
-rwxr-xr-xwebsearch5
1 files changed, 3 insertions, 2 deletions
diff --git a/websearch b/websearch
index 12bf2f5..dddcc20 100755
--- a/websearch
+++ b/websearch
@@ -3,8 +3,9 @@
3# Perform a web search 3# Perform a web search
4 4
5browser=${BROWSER:-firefox} 5browser=${BROWSER:-firefox}
6searchengine="https://duckduckgo.com/?q=" 6searchengine="https://www.startpage.com/sp/search?query="
7# For google: https://www.google.com/search?q= 7#searchengine="https://duckduckgo.com/?q="
8#searchendinge="https://www.google.com/search?q="
8 9
9arg=$(echo "$@" | sed 's/ /\+/g') 10arg=$(echo "$@" | sed 's/ /\+/g')
10[ -n "$arg" ] && spawn "$browser" "${searchengine}$arg" 11[ -n "$arg" ] && spawn "$browser" "${searchengine}$arg"

Generated with cgit - Back to sebastiano.tronto.net