mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
feat(web-search): add Mozilla Developer Network search query
This commit is contained in:
parent
750d3ac4b4
commit
f31b718d78
2 changed files with 3 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ Available search contexts are:
|
||||||
| `chatgpt` | `https://chatgpt.com/?q=` |
|
| `chatgpt` | `https://chatgpt.com/?q=` |
|
||||||
| `reddit` | `https://www.reddit.com/search/?q=` |
|
| `reddit` | `https://www.reddit.com/search/?q=` |
|
||||||
| `ppai` | `https://www.perplexity.ai/search/new?q=` |
|
| `ppai` | `https://www.perplexity.ai/search/new?q=` |
|
||||||
|
| `mdn` | `https://developer.mozilla.org/search?q=` |
|
||||||
|
|
||||||
Also there are aliases for bang-searching DuckDuckGo:
|
Also there are aliases for bang-searching DuckDuckGo:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ function web_search() {
|
||||||
chatgpt "https://chatgpt.com/?q="
|
chatgpt "https://chatgpt.com/?q="
|
||||||
reddit "https://www.reddit.com/search/?q="
|
reddit "https://www.reddit.com/search/?q="
|
||||||
ppai "https://www.perplexity.ai/search/new?q="
|
ppai "https://www.perplexity.ai/search/new?q="
|
||||||
|
mdn "https://developer.mozilla.org/search?q="
|
||||||
)
|
)
|
||||||
|
|
||||||
# check whether the search engine is supported
|
# check whether the search engine is supported
|
||||||
|
|
@ -89,6 +90,7 @@ alias gopkg='web_search gopkg'
|
||||||
alias chatgpt='web_search chatgpt'
|
alias chatgpt='web_search chatgpt'
|
||||||
alias reddit='web_search reddit'
|
alias reddit='web_search reddit'
|
||||||
alias ppai='web_search ppai'
|
alias ppai='web_search ppai'
|
||||||
|
alias mdn='web_search mdn'
|
||||||
|
|
||||||
#add your own !bang searches here
|
#add your own !bang searches here
|
||||||
alias wiki='web_search duckduckgo \!w'
|
alias wiki='web_search duckduckgo \!w'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue