diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-06-26 14:58:59 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-06-26 14:58:59 +0200 |
| commit | 026bcfc65687ba14299ea2f553940f62388874ce (patch) | |
| tree | b539ae07143815efbd1a428ded45b703b33bb4e1 /websearch | |
| parent | 25461147e74904e566519c87dcb28b3bbf49b127 (diff) | |
| download | scripts-026bcfc65687ba14299ea2f553940f62388874ce.tar.gz scripts-026bcfc65687ba14299ea2f553940f62388874ce.zip | |
Changed search engine to startpage
Diffstat (limited to 'websearch')
| -rwxr-xr-x | websearch | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -3,8 +3,9 @@ | |||
| 3 | # Perform a web search | 3 | # Perform a web search |
| 4 | 4 | ||
| 5 | browser=${BROWSER:-firefox} | 5 | browser=${BROWSER:-firefox} |
| 6 | searchengine="https://duckduckgo.com/?q=" | 6 | searchengine="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 | ||
| 9 | arg=$(echo "$@" | sed 's/ /\+/g') | 10 | arg=$(echo "$@" | sed 's/ /\+/g') |
| 10 | [ -n "$arg" ] && spawn "$browser" "${searchengine}$arg" | 11 | [ -n "$arg" ] && spawn "$browser" "${searchengine}$arg" |
