File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Required parameters:
4
+ # @raycast.schemaVersion 1
5
+ # @raycast.title I'm Feeling Ducky
6
+ # @raycast.mode silent
7
+
8
+ # Optional parameters:
9
+ # @raycast.icon ./images/duck-duck-go.png
10
+ # @raycast.argument1 { "type": "text", "placeholder": "Query" }
11
+ # @raycast.packageName Web Searches
12
+
13
+ # Documentation:
14
+ # @raycast.description Open the first DuckDuckGo search result page for your query (also supports bang!)
15
+ # @raycast.author Achille Lacoin
16
+ # @raycast.authorURL https://github.com/pomdtr
17
+
18
+ # region-specific search e.g. 'us-en' for US (default);
19
+ # visit https://duckduckgo.com/params
20
+ REGION=us-en
21
+
22
+ if ! command -v tldr & > /dev/null; then
23
+ echo " ddgr is not installed."
24
+ echo " Installation instructions: https://github.com/jarun/ddgr#installation"
25
+ exit 1
26
+ fi
27
+
28
+ query=$1
29
+ ddgr --ducky --noprompt " $query " --reg " $REGION " & > /dev/null
You can’t perform that action at this time.
0 commit comments