Skip to content

Instantly share code, notes, and snippets.

@jaohaohsuan
Created July 14, 2016 01:07
Show Gist options
  • Save jaohaohsuan/7e0b3c5c68f98bce53505fcefaf158bb to your computer and use it in GitHub Desktop.
Save jaohaohsuan/7e0b3c5c68f98bce53505fcefaf158bb to your computer and use it in GitHub Desktop.
kubectl(1.2.3) bash-completion install on ubuntu 16.04
curl -sSL https://raw.githubusercontent.com/kubernetes/kubernetes/$(kubectl version --client | grep -o -P '(?<=GitCommit:").*(?=",)')/contrib/completions/bash/kubectl | sudo tee /etc/bash_completion.d/kubectl
@jaohaohsuan
Copy link
Author

requires

  • sudo apt install bash-completion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment