GitHub:https://github.com/hidetatz/kubecolor
wget https://github.com/hidetatz/kubecolor/releases/download/v0.0.25/kubecolor_0.0.25_Linux_x86_64.tar.gz
tar xf kubecolor_0.0.25_Linux_x86_64.tar.gz -C /usr/local/bin/ kubecolor
# 改成别的命令tab就顺畅多了。
mv /usr/local/bin/kubecolor /usr/local/bin/colorkube
echo 'command -v colorkube >/dev/null 2>&1 && alias kubectl="colorkube"' >> ~/.bashrc
echo 'complete -o default -F __start_kubectl kubectl' >> ~/.bashrc
source ~/.bashrc
标签:kubectl,tar,25,炫彩,bashrc,usr,命令行,kubecolor From: https://www.cnblogs.com/-k8s/p/17378580.html