1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

feat(web-search): add programming packages search (#12199)

This commit is contained in:
Mateus Fernandes de Mello 2024-02-06 07:26:30 -03:00 committed by GitHub
parent 2124370900
commit 883da63320
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -46,6 +46,10 @@ Available search contexts are:
| `ask` | `https://www.ask.com/web?q=` | | `ask` | `https://www.ask.com/web?q=` |
| `youtube` | `https://www.youtube.com/results?search_query=` | | `youtube` | `https://www.youtube.com/results?search_query=` |
| `deepl` | `https://www.deepl.com/translator#auto/auto/` | | `deepl` | `https://www.deepl.com/translator#auto/auto/` |
| `dockerhub` | `https://hub.docker.com/search?q=` |
| `npmpkg` | `https://www.npmjs.com/search?q=` |
| `packagist` | `https://packagist.org/?query=` |
| `gopkg` | `https://pkg.go.dev/search?m=package&q=` |
Also there are aliases for bang-searching DuckDuckGo: Also there are aliases for bang-searching DuckDuckGo:

View file

@ -27,6 +27,10 @@ function web_search() {
ask "https://www.ask.com/web?q=" ask "https://www.ask.com/web?q="
youtube "https://www.youtube.com/results?search_query=" youtube "https://www.youtube.com/results?search_query="
deepl "https://www.deepl.com/translator#auto/auto/" deepl "https://www.deepl.com/translator#auto/auto/"
dockerhub "https://hub.docker.com/search?q="
npmpkg "https://www.npmjs.com/search?q="
packagist "https://packagist.org/?query="
gopkg "https://pkg.go.dev/search?m=package&q="
) )
# check whether the search engine is supported # check whether the search engine is supported
@ -75,6 +79,10 @@ alias scholar='web_search scholar'
alias ask='web_search ask' alias ask='web_search ask'
alias youtube='web_search youtube' alias youtube='web_search youtube'
alias deepl='web_search deepl' alias deepl='web_search deepl'
alias dockerhub='web_search dockerhub'
alias npmpkg='web_search npmpkg'
alias packagist='web_search packagist'
alias gopkg='web_search gopkg'
#add your own !bang searches here #add your own !bang searches here
alias wiki='web_search duckduckgo \!w' alias wiki='web_search duckduckgo \!w'