Compare commits

...

4 Commits

Author SHA1 Message Date
Cristian Magherusan-Stanciu e51649de1b
Merge 048196a8ad into 5c17bcd21f 2025-01-08 14:26:01 +01:00
Bhanu 5c17bcd21f
feat(web-search): add perplexity.ai (#12815) 2025-01-08 09:34:00 +01:00
Cristian Magherusan-Stanciu 048196a8ad Remove bashcompinit calls
They are not needed, already done in lib/completion.zsh
2020-09-08 19:35:10 +02:00
Cristian Magherusan-Stanciu 2687d69c46 Add a basic plugin for pipx 2020-09-08 19:25:46 +02:00
4 changed files with 22 additions and 0 deletions

13
plugins/pipx/README.md Normal file
View File

@ -0,0 +1,13 @@
# pipx
[`pipx`](https://pipxproject.github.io/pipx/) - Install and Run Python Applications in Isolated Environments
To use it, add `pipx` to the plugins array in your zshrc file:
```zsh
plugins=(... pipx)
```
## Installation
Please find detailed installation guide [`here`](https://pipxproject.github.io/pipx/installation/)

View File

@ -0,0 +1,6 @@
# check if pipx is installed
if (( ! ${+commands[pipx]} )); then
return
fi
eval "$(register-python-argcomplete pipx)"

View File

@ -52,6 +52,7 @@ Available search contexts are:
| `gopkg` | `https://pkg.go.dev/search?m=package&q=` |
| `chatgpt` | `https://chatgpt.com/?q=` |
| `reddit` | `https://www.reddit.com/search/?q=` |
| `ppai` | `https://www.perplexity.ai/search/new?q=` |
Also there are aliases for bang-searching DuckDuckGo:

View File

@ -33,6 +33,7 @@ function web_search() {
gopkg "https://pkg.go.dev/search?m=package&q="
chatgpt "https://chatgpt.com/?q="
reddit "https://www.reddit.com/search/?q="
ppai "https://www.perplexity.ai/search/new?q="
)
# check whether the search engine is supported
@ -87,6 +88,7 @@ alias packagist='web_search packagist'
alias gopkg='web_search gopkg'
alias chatgpt='web_search chatgpt'
alias reddit='web_search reddit'
alias ppai='web_search ppai'
#add your own !bang searches here
alias wiki='web_search duckduckgo \!w'