setup autocomplete in bash

PHOTO EMBED

Thu Oct 07 2021 08:10:52 GMT+0000 (UTC)

Saved by @mkhaired #k8s #kubernetes

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

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