Update something
This commit is contained in:
parent
147ca5ddbc
commit
cd7248fdc7
1 changed files with 14 additions and 14 deletions
|
@ -7,16 +7,16 @@ QUERY="$*"
|
||||||
ENCODED_QUERY=$(echo "$QUERY" | sed 's/ /+/g')
|
ENCODED_QUERY=$(echo "$QUERY" | sed 's/ /+/g')
|
||||||
|
|
||||||
case "$ENGINE" in
|
case "$ENGINE" in
|
||||||
yt)
|
yt)
|
||||||
xdg-open "https://www.youtube.com/results?search_query=$ENCODED_QUERY"
|
xdg-open "https://www.youtube.com/results?search_query=$ENCODED_QUERY"
|
||||||
;;
|
;;
|
||||||
wikipedia)
|
wikipedia)
|
||||||
xdg-open "https://en.wikipedia.org/wiki/Special:Search?search=$ENCODED_QUERY"
|
xdg-open "https://en.wikipedia.org/wiki/Special:Search?search=$ENCODED_QUERY"
|
||||||
;;
|
;;
|
||||||
duckduckgo)
|
searchxng)
|
||||||
xdg-open "https://duckduckgo.com/?q=$ENCODED_QUERY"
|
xdg-open "https://findit.yerp.lat?q=$ENCODED_QUERY"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
QUERY="$ENGINE $QUERY"
|
QUERY="$ENGINE $QUERY"
|
||||||
ENCODED_QUERY=$(echo "$QUERY" | sed 's/ /+/g')
|
ENCODED_QUERY=$(echo "$QUERY" | sed 's/ /+/g')
|
||||||
xdg-open "https://www.google.com/search?q=$ENCODED_QUERY"
|
xdg-open "https://www.google.com/search?q=$ENCODED_QUERY"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue