mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-02-20 21:17:27 +01:00
15 lines
396 B
Bash
15 lines
396 B
Bash
|
# Completion
|
||
|
if (( ! $+commands[stern] )); then
|
||
|
return
|
||
|
fi
|
||
|
|
||
|
# If the completion file doesn't exist yet, we need to autoload it and
|
||
|
# bind it to `stern`. Otherwise, compinit will have already done that.
|
||
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_stern" ]]; then
|
||
|
typeset -g -A _comps
|
||
|
autoload -Uz _stern
|
||
|
_comps[stern]=_stern
|
||
|
fi
|
||
|
|
||
|
stern --completion zsh >| "$ZSH_CACHE_DIR/completions/_stern" &|
|