diff options
| -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" |
