mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
added k9s completions
This commit is contained in:
parent
367e9381df
commit
5b14c70c92
2 changed files with 20 additions and 0 deletions
11
plugins/k9s/k9s.plugin.zsh
Normal file
11
plugins/k9s/k9s.plugin.zsh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
if (( $+commands[k9s] )); then
|
||||
# If the completion file does not exist, generate it and then source it
|
||||
# Otherwise, source it and regenerate in the background
|
||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_k9s" ]]; then
|
||||
k9s completion zsh | tee "$ZSH_CACHE_DIR/completions/_k9s" >/dev/null
|
||||
source "$ZSH_CACHE_DIR/completions/_k9s"
|
||||
else
|
||||
source "$ZSH_CACHE_DIR/completions/_k9s"
|
||||
k9s completion zsh | tee "$ZSH_CACHE_DIR/completions/_k9s" >/dev/null &|
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue