安装epel 源

yum -y install epel-release


加快yun速度

yum -y install yum-plugin-fastestmirror


安装bash-completion

yum -y install bash-completion

yum -y install bash-completion-extras # CentOS 7 再多安装一个


立即生效

source /etc/profile.d/bash_completion.sh 

或者退出终端重新登录