bash中的自动完成(使用Tab)适用于文件夹,但不适用于文件.
>我正在运行Ubuntu 13.10
>我没有触及我的.bashrc文件
这是.bashrc文件底部的外观,安装和更新了bash-completion部分:
# enable programmable completion features (you don't need to enable # this,if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). 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
有任何想法吗?