Skip to content

Autocomplete does not work when installed as Krew plugin #410

@benjaminclauss

Description

@benjaminclauss
# Enable shell completion
autoload -U compinit; compinit

# Install Krew - the package manager for kubectl plugins
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"

# https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/#enable-shell-autocompletion
source <(kubectl completion zsh)

I would expect kubectl ctx CL<tab><tab> to show CLUSTER.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions