diff options
| author | Tulsi Prasad <tulsi.prasad50@gmail.com> | 2024-09-10 18:53:37 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-10 15:23:37 +0200 |
| commit | f6cd6a776993b584f4abbdd204c6e4011b7d2f93 (patch) | |
| tree | 6b37b7e28d097ceb8fa1d743e710c50a102fd31e | |
| parent | 2abecedf67f47f0b39ee31b38705630eaa8dc21f (diff) | |
| download | zsh-f6cd6a776993b584f4abbdd204c6e4011b7d2f93.tar.gz zsh-f6cd6a776993b584f4abbdd204c6e4011b7d2f93.tar.bz2 zsh-f6cd6a776993b584f4abbdd204c6e4011b7d2f93.zip | |
feat(web-search): add chatgpt (#12660)
| -rw-r--r-- | plugins/web-search/README.md | 15 | ||||
| -rw-r--r-- | plugins/web-search/web-search.plugin.zsh | 2 |
2 files changed, 10 insertions, 7 deletions
diff --git a/plugins/web-search/README.md b/plugins/web-search/README.md index d21c81ca9..91754ac7f 100644 --- a/plugins/web-search/README.md +++ b/plugins/web-search/README.md @@ -50,16 +50,17 @@ Available search contexts are: | `npmpkg` | `https://www.npmjs.com/search?q=` | | `packagist` | `https://packagist.org/?query=` | | `gopkg` | `https://pkg.go.dev/search?m=package&q=` | +| `chatgpt` | `https://chatgpt.com/?q=` | Also there are aliases for bang-searching DuckDuckGo: -| Context | Bang | -| --------- | ----- | -| `wiki` | `!w` | -| `news` | `!n` | -| `map` | `!m` | -| `image` | `!i` | -| `ducky` | `!` | +| Context | Bang | +| ------- | ---- | +| `wiki` | `!w` | +| `news` | `!n` | +| `map` | `!m` | +| `image` | `!i` | +| `ducky` | `!` | ### Custom search engines diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh index c602e0623..2f524ba1e 100644 --- a/plugins/web-search/web-search.plugin.zsh +++ b/plugins/web-search/web-search.plugin.zsh @@ -31,6 +31,7 @@ function web_search() { npmpkg "https://www.npmjs.com/search?q=" packagist "https://packagist.org/?query=" gopkg "https://pkg.go.dev/search?m=package&q=" + chatgpt "https://chatgpt.com/?q=" ) # check whether the search engine is supported @@ -83,6 +84,7 @@ alias dockerhub='web_search dockerhub' alias npmpkg='web_search npmpkg' alias packagist='web_search packagist' alias gopkg='web_search gopkg' +alias chatgpt='web_search chatgpt' #add your own !bang searches here alias wiki='web_search duckduckgo \!w' |
