Skip to content

kubectl Autocomplete

  • For zsh, add the following to .zshrc

    source <(kubectl completion zsh)
    
  • For pwsh, use the following

    kubectl completion powershell >> $PROFILE
    
    • However, it's not as useful as we have for zsh or bash.