source (shell built-in)

From wikieduonline
Revision as of 05:47, 26 September 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search


source <(kubectl completion zsh)  # setup autocomplete in zsh into the current shell
echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> ~/.zshrc # add autocomplete permanently to your zsh shell
[1]


Related

  • https://kubernetes.io/docs/reference/kubectl/cheatsheet/
  • Advertising: