如题 kubuntu14.04 终端命令不能补全
在ubunu下这些命令都能自动补全
例 sudo apt-get insta(这时候按tab没有任何反应)
例 sudo autorem(这时候按tab也不能补全)
路径可以补全 中文路径也可以补全
也试过reconfig -dash 选择否 之后命令还是不能补全
终端配置项里面路径为/bin/bash/
哪位大大能指点解决呢 谢谢
kubuntu 终端 命令不能补全
- zcl0621
- 帖子: 62
- 注册时间: 2009-04-24 22:09
- zcl0621
- 帖子: 62
- 注册时间: 2009-04-24 22:09
Re: kubuntu 终端 命令不能补全
找到解决办法了
编辑/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
编辑/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
- photor
- 论坛版主
- 帖子: 11004
- 注册时间: 2008-04-26 12:41