打开终端
sudo gedit /etc/bash.bashrc
部分内容如下
- # enable bash completion in interactive shells
- #if ! shopt -oq posix; then
- # if [ -f /usr/share/bash-completion/bash_completion ]; then
- # . /usr/share/bash-completion/bash_completion
- # elif [ -f /etc/bash_completion ]; then
- # . /etc/bash_completion
- # fi
- #fi
转载自http://blog.youkuaiyun.com/andos/article/details/10211833