15014db8d58892488f6a270148279e053a472bfb

Author
Tanmay Patil <92677342+TanmayPatil105@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(web-search): add ask.com (#11292)

Diff

 1diff --git a/plugins/web-search/README.md b/plugins/web-search/README.md
 2index 54232a9102365fd48dc6bf3b3fa327146540b659..0bf9f26ad354702edcb14c750e4296f6621bd5f4 100644
 3--- a/plugins/web-search/README.md
 4+++ b/plugins/web-search/README.md
 5@@ -43,6 +43,7 @@ Available search contexts are:
 6 | `wolframalpha`        | `https://wolframalpha.com/input?i=`      |
 7 | `archive`             | `https://web.archive.org/web/*/`         |
 8 | `scholar`             | `https://scholar.google.com/scholar?q=`  |
 9+| `ask`                 | `https://www.ask.com/web?q=`             |
10 
11 Also there are aliases for bang-searching DuckDuckGo:
12 
13diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh
14index d8b4a7f8ba141c4db61d4e8e055110eb65efa6fd..ec176dd680a8724ad78d23902b2a0a9c2ac6a008 100644
15--- a/plugins/web-search/web-search.plugin.zsh
16+++ b/plugins/web-search/web-search.plugin.zsh
17@@ -24,6 +24,7 @@ function web_search() {
18     wolframalpha    "https://www.wolframalpha.com/input/?i="
19     archive         "https://web.archive.org/web/*/"
20     scholar         "https://scholar.google.com/scholar?q="
21+    ask             "https://www.ask.com/web?q="
22   )
23 
24   # check whether the search engine is supported
25@@ -64,6 +65,7 @@ alias stackoverflow='web_search stackoverflow'
26 alias wolframalpha='web_search wolframalpha'
27 alias archive='web_search archive'
28 alias scholar='web_search scholar'
29+alias ask='web_search ask'
30 
31 #add your own !bang searches here
32 alias wiki='web_search duckduckgo \!w'