본문 바로가기
OS/linux

centos7 kubectl 치트키 설정

by Knowledge Store In Hyunsoft 2019. 12. 5.

Enable Bash Auto Completion

yum install bash-completion bash-completion-extras

 

locate 설치

sudo yum install mlocate
sudo updatedb
locate bash_completion.sh

 

kubectl  자동 완성

source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc

 

728x90

댓글