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:
parent
537807c863
commit
788b5776c0
@ -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=` |
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user