1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-11-05 05:51:17 +08:00

feat(web-search): add search with claude.ai and grok.com (#13222)

This commit is contained in:
Wagner Moreira 2025-07-22 14:29:47 -03:00 committed by GitHub
parent 537807c863
commit 788b5776c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,8 @@ Available search contexts are:
| `packagist` | `https://packagist.org/?query=` |
| `gopkg` | `https://pkg.go.dev/search?m=package&q=` |
| `chatgpt` | `https://chatgpt.com/?q=` |
| `claude` | `https://claude.ai/new?q=` |
| `grok` | `https://grok.com/?q=` |
| `reddit` | `https://www.reddit.com/search/?q=` |
| `ppai` | `https://www.perplexity.ai/search/new?q=` |

View File

@ -33,6 +33,8 @@ function web_search() {
packagist "https://packagist.org/?query="
gopkg "https://pkg.go.dev/search?m=package&q="
chatgpt "https://chatgpt.com/?q="
grok "https://grok.com/?q="
claude "https://claude.ai/new?q="
reddit "https://www.reddit.com/search/?q="
ppai "https://www.perplexity.ai/search/new?q="
)
@ -89,6 +91,8 @@ alias npmpkg='web_search npmpkg'
alias packagist='web_search packagist'
alias gopkg='web_search gopkg'
alias chatgpt='web_search chatgpt'
alias grok='web_search grok'
alias claude='web_search claude'
alias reddit='web_search reddit'
alias ppai='web_search ppai'
@ -108,3 +112,4 @@ if [[ ${#ZSH_WEB_SEARCH_ENGINES} -gt 0 ]]; then
done
unset engines key
fi