Ubuntu系统Tab键补全方法

Posted 拾日迂南

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu系统Tab键补全方法相关的知识,希望对你有一定的参考价值。

1.修改/etc/bash.bashrc文件

vim /etc/bash.bashrc

2.将下面的注释#去掉

#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

3.source一下 /etc/bash.bashrc

source /etc/bash.bashrc

以上是关于Ubuntu系统Tab键补全方法的主要内容,如果未能解决你的问题,请参考以下文章