blob: 996ddc3223b761d4ba47e250069148a5e9b384bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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"
|