解析ubuntu tab键不能自动补全命令的参数
时间:2021-06-12 08:12:55|栏目:Linux|点击: 次
/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
去掉注释
#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
. /etc/bash.bashrc就ok了
栏 目:Linux
本文地址:http://www.codeinn.net/misctech/140210.html






