編輯.bashrc文件,將這段前面的註釋去掉bash
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then # . /etc/bash_completion #fi
而後刷新.bashrc,使配置更改生效code
. .bashrc