分页: 1 / 1

kubuntu 终端 命令不能补全

发表于 : 2014-08-15 19:34
zcl0621
如题 kubuntu14.04 终端命令不能补全
在ubunu下这些命令都能自动补全
例 sudo apt-get insta(这时候按tab没有任何反应)
例 sudo autorem(这时候按tab也不能补全)
路径可以补全 中文路径也可以补全
也试过reconfig -dash 选择否 之后命令还是不能补全
终端配置项里面路径为/bin/bash/

哪位大大能指点解决呢 谢谢

Re: kubuntu 终端 命令不能补全

发表于 : 2014-08-15 19:44
zcl0621
找到解决办法了

编辑/etc/bash.bashrc文件(必须以管理员权限),找到以下几行:

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi
把后三行前面的#去掉,取消注释,变为:

# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi

Re: kubuntu 终端 命令不能补全

发表于 : 2014-08-15 22:49
photor
:em09