commit 5bccc63
hovercats
·
2023-11-22 11:30:06 +0000 UTC
parent 9c8fba6
sh/dsearch: drop for rc rewrite
1 files changed,
+0,
-18
+0,
-18
1@@ -1,18 +0,0 @@
2-#!/bin/sh -e
3-
4-# Search the web from dmenu
5-# Does not handle URLs
6-
7-# shellcheck disable=2153
8-browser="$BROWSER"
9-
10-ENGINE='https://duckduckgo.com/?q='
11-
12-# Spaces are not allowed, so substitute them to correct string
13-STRING=$(printf '' | dmenu -c -p 'Search' | sed 's/ /%20/g')
14-
15-if [ -z "$STRING" ]; then
16- exit 1
17-else
18- "$browser" "$ENGINE$STRING"
19-fi