Autocompletion (Bash)

From wikieduonline
Revision as of 15:57, 26 January 2020 by Welcome (talk | contribs) (Created page with " https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-autocomplete source <(kubectl completion bash) # setup autocomplete in bash into the current shell, ba...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-autocomplete

source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first.
echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell.


See also

Advertising: