mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
3 Commits
a8b9c87d97
...
5051e6ba41
Author | SHA1 | Date |
---|---|---|
David Matheson | 5051e6ba41 | |
Bhanu | 5c17bcd21f | |
David Matheson | 88214ad9f7 |
|
@ -0,0 +1,14 @@
|
|||
# sdkman
|
||||
|
||||
Plugin for SDKMAN, a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems.
|
||||
Provides initialization for different scenarios where users may have installed.
|
||||
|
||||
To use it, add `sdkman` to your plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... sdkman)
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
* [SDKMAN](http://sdkman.io/)
|
|
@ -0,0 +1,8 @@
|
|||
if [[ -z "$SDKMAN_DIR" ]]; then
|
||||
if [[ -d "$HOME/.sdkman" ]]; then
|
||||
export SDKMAN_DIR="$HOME/.sdkman"
|
||||
else
|
||||
export SDKMAN_DIR="$(brew --prefix sdkman-cli)/libexec" || echo "Cannot find SDKMAN!"
|
||||
fi
|
||||
fi
|
||||
[[ -s "${SDKMAN_DIR}/bin/sdkman-init.sh" ]] && source "${SDKMAN_DIR}/bin/sdkman-init.sh"
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue