Skip to content

Commit

Permalink
sh: Call compdef for all sourced completion scripts
Browse files Browse the repository at this point in the history
This is required for all Zsh completions generated by spf13/cobra above
version 1.15.0 (spf13/cobra#1690).
  • Loading branch information
antoineco committed Feb 17, 2023
1 parent 2443869 commit 8b39648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zsh/zshrc
Expand Up @@ -175,9 +175,9 @@ add-zsh-hook precmd _kube_ps1_to_rprompt
bindkey -M vicmd "${key_info[Control]}x${key_info[Control]}e" edit-command-line

# Commands completion
whence kubectl >/dev/null && . <(kubectl completion zsh)
whence kubectl >/dev/null && . <(kubectl completion zsh) && compdef _kubectl kubectl
whence ko >/dev/null && . <(ko completion zsh) && compdef _ko ko
whence limactl >/dev/null && . <(limactl completion zsh)
whence limactl >/dev/null && . <(limactl completion zsh) && compdef _limactl limactl
[[ -f "${HOME}/.local/share/nvim/site/pack/packer/start/fzf/shell/completion.zsh" ]] && . "${HOME}/.local/share/nvim/site/pack/packer/start/fzf/shell/completion.zsh"

# Aliases
Expand Down

0 comments on commit 8b39648

Please sign in to comment.