source (shell built-in)

From wikieduonline
Revision as of 06:32, 2 February 2023 by Brave (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: