码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu tab键不能自动补全命令的参数

时间:2016-12-23 19:55:42      阅读:296      评论:0      收藏:0      [点我收藏+]

标签:tab   补全   

/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了

本文出自 “12208412” 博客,请务必保留此出处http://12218412.blog.51cto.com/12208412/1885427

ubuntu tab键不能自动补全命令的参数

标签:tab   补全   

原文地址:http://12218412.blog.51cto.com/12208412/1885427

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!