编辑.bashrc文件,将这段前面的注释去掉bash
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then # . /etc/bash_completion #fi
而后刷新.bashrc,使配置更改生效code
. .bashrc