mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Add plugin with completions for tenv: OpenTofu, Terraform, Terragrunt and Atmos version manager, written in Go.
15 lines
400 B
Bash
15 lines
400 B
Bash
# Autocompletion for tenv
|
|
if (( ! $+commands[tenv] )); then
|
|
return
|
|
fi
|
|
|
|
# If the completion file doesn't exist yet, we need to autoload it and
|
|
# bind it to `tenv`. Otherwise, compinit will have already done that.
|
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_tenv" ]]; then
|
|
typeset -g -A _comps
|
|
autoload -Uz _tenv
|
|
_comps[tenv]=_tenv
|
|
fi
|
|
|
|
tenv completion zsh >| "$ZSH_CACHE_DIR/completions/_tenv" &|
|
|
|