diff options
author | davidovski <david@davidovski.xyz> | 2023-11-12 23:08:36 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-11-12 23:08:36 +0000 |
commit | 4c2194a7c5758637259d109df248c24a2fac62e6 (patch) | |
tree | 89e6b7cda52d6fb0b59b777880e5ea6d7aa1e2fc /scripts | |
parent | 90a7d7ceb3087efc6bd528c5930d62ab3237fe13 (diff) |
Use mksh history
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/websearch | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/websearch b/scripts/websearch index 5ffb91b..7af5b57 100755 --- a/scripts/websearch +++ b/scripts/websearch @@ -7,6 +7,8 @@ SEARCH_HISTORY=$HOME/.local/share/search_history SEARCH=$(cat $SEARCH_HISTORY | dmenu -p "search") +[ -z "$SEARCH" ] && exit 1 + echo "$SEARCH" >> $SEARCH_HISTORY query=$(echo $SEARCH | sed 's/ /+/g') |