General purpose Ubuntu 20.04 Instance
curl -sfL https://get.k3s.io | sh -
kubectl get nodes
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.
alias k=kubectl
complete -F __start_kubectl k
kubectl completion bash
It is incorrect, the following is correct
k3s completion bash