ubuntu12.04 恢复终端下命令TAB键补齐

本文介绍了解决Ubuntu 12.04系统中终端TAB键自动补全功能失效的问题。通过修改~/.bashrc文件并启用programmable completion特性,最终实现了命令补全功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

操作系统:ubuntu12.04

问题:终端下输入命令,TAB键补齐功能失效

解决方法:修改~/.bashrc,打开“programmable completion”功能,如下:

 # Alias definitions.                                                                         
 # You may want to put all your additions into a separate file like                           
 # ~/.bash_aliases, instead of adding them here directly.                                     
 # See /usr/share/doc/bash-doc/examples in the bash-doc package.                              
 
 if [ -f ~/.bash_aliases ]; then
     . ~/.bash_aliases
 fi
 
 # 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 [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
 fi

 
 export PATH=/usr/local/arm/4.3.2/bin/:$PATH
 export PATH=/opt/skyeye/bin:$PATH


执行“source ~/.bashrc",使修改生效。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值