added oh-my-ssh back as raw code, not as a submodule.
This commit is contained in:
parent
23fe3ee6d5
commit
f663947bfc
1195 changed files with 126994 additions and 0 deletions
14
.zsh/oh-my-zsh/plugins/nats/README.md
Normal file
14
.zsh/oh-my-zsh/plugins/nats/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# NATS plugin
|
||||
|
||||
This plugin adds completion for several tools from [NATS](https://nats.io/).
|
||||
|
||||
- [`nsc`](https://github.com/nats-io/nsc)
|
||||
- [`natscli`](https://github.com/nats-io/natscli)
|
||||
|
||||
To use it, add `nats` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... nats)
|
||||
```
|
||||
|
||||
This plugin does not add any aliases.
|
||||
31
.zsh/oh-my-zsh/plugins/nats/nats.plugin.zsh
Normal file
31
.zsh/oh-my-zsh/plugins/nats/nats.plugin.zsh
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
if (( $+commands[nsc] )); then
|
||||
# If the completion file doesn't exist yet, we need to autoload it and
|
||||
# bind it to `nsc`. Otherwise, compinit will have already done that.
|
||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_nsc" ]]; then
|
||||
typeset -g -A _comps
|
||||
autoload -Uz _nsc
|
||||
_comps[nsc]=_nsc
|
||||
fi
|
||||
|
||||
zmodload -F zsh/files b:zf_mv
|
||||
() {
|
||||
local TMPPREFIX="$ZSH_CACHE_DIR/completions/._nsc"
|
||||
zf_mv -f -- =( nsc completion zsh ) "$ZSH_CACHE_DIR/completions/_nsc"
|
||||
} &|
|
||||
fi
|
||||
|
||||
if (( $+commands[nats] )); then
|
||||
# If the completion file doesn't exist yet, we need to autoload it and
|
||||
# bind it to `nats`. Otherwise, compinit will have already done that.
|
||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_nats" ]]; then
|
||||
typeset -g -A _comps
|
||||
autoload -Uz _nats
|
||||
_comps[nats]=_nats
|
||||
fi
|
||||
|
||||
zmodload -F zsh/files b:zf_mv
|
||||
() {
|
||||
local TMPPREFIX="$ZSH_CACHE_DIR/completions/._nats"
|
||||
zf_mv -f -- =( nats --completion-script-zsh ) "$ZSH_CACHE_DIR/completions/_nats"
|
||||
} &|
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue