mirror of
https://git.davidovski.xyz/dot.git
synced 2024-08-15 00:43:28 +00:00
15 lines
264 B
Text
15 lines
264 B
Text
|
#!/bin/sh
|
||
|
|
||
|
|
||
|
SEARCH_ENGINE="https://search.brave.com/search?q="
|
||
|
SEARCH_HISTORY=/tmp/.search_history
|
||
|
|
||
|
SEARCH=$(cat $SEARCH_HISTORY | dmenu -p "search")
|
||
|
|
||
|
touch $SEARCH_HISTORY
|
||
|
|
||
|
cat <<< "$SEARCH
|
||
|
$(cat $SEARCH_HISTORY)" > $SEARCH_HISTORY
|
||
|
|
||
|
brave "$SEARCH_ENGINE$SEARCH"
|