Skip to content

Instantly share code, notes, and snippets.

@vainikkaj
Created January 18, 2019 06:37
Show Gist options
  • Save vainikkaj/f69d530b07b156b33bc5343fe76d6a3a to your computer and use it in GitHub Desktop.
Save vainikkaj/f69d530b07b156b33bc5343fe76d6a3a to your computer and use it in GitHub Desktop.
kubens zsh completion
#compdef kubens kns=kubens
_arguments "1: :(- $(kubectl get namespaces -o=jsonpath='{range .items[*].metadata.name}{@}{"\n"}{end}'))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment