终端里面打错命令后有个自动提示能关了么?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
ww2000e
帖子: 93
注册时间: 2007-10-11 22:03

终端里面打错命令后有个自动提示能关了么?

#1

帖子 ww2000e » 2012-02-10 22:41

打错了卡一下然后显示可能的命令,这个功能感觉卡,想关了
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 终端里面打错命令后有个自动提示能关了么?

#2

帖子 YeLee » 2012-02-10 22:44

在bashrc里面把bash-completion相关的注释了吧。
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
b33e
帖子: 3864
注册时间: 2011-06-07 14:20
系统: Mint18

Re: 终端里面打错命令后有个自动提示能关了么?

#3

帖子 b33e » 2012-02-10 22:58

:em06 我才在嫌arch默认没有安装bash-completion呢
ww2000e
帖子: 93
注册时间: 2007-10-11 22:03

Re: 终端里面打错命令后有个自动提示能关了么?

#4

帖子 ww2000e » 2012-02-11 23:07

我注释的对么?
# 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



注释了还是有提示
No command 'asdf' found, did you mean:
Command 'asdfg' from package 'aoeui' (universe)
Command 'sadf' from package 'sysstat' (main)
Command 'sdf' from package 'sdf' (universe)
asdf: command not found
头像
guaicai
帖子: 169
注册时间: 2012-01-29 9:30
系统: Fedora19 Xfce

Re: 终端里面打错命令后有个自动提示能关了么?

#5

帖子 guaicai » 2012-02-11 23:28

没感觉卡啊
===============================
XP XP XP XP XP XP XP XP XP XP XP XP
??现在的人问问题都是让人来猜吗??
XP XP XP XP XP XP XP XP XP XP XP XP
===============================
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 终端里面打错命令后有个自动提示能关了么?

#6

帖子 YeLee » 2012-02-12 9:07

ww2000e 写了:我注释的对么?
# 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



注释了还是有提示
No command 'asdf' found, did you mean:
Command 'asdfg' from package 'aoeui' (universe)
Command 'sadf' from package 'sysstat' (main)
Command 'sdf' from package 'sdf' (universe)
asdf: command not found
后面那个是 command not found这个包的问题吧。
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 终端里面打错命令后有个自动提示能关了么?

#7

帖子 YeLee » 2012-02-12 9:09

楼主的意思是不是想卸载command-not-found这个包?
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
ww2000e
帖子: 93
注册时间: 2007-10-11 22:03

Re: 终端里面打错命令后有个自动提示能关了么?

#8

帖子 ww2000e » 2012-02-12 13:09

YeLee 写了:楼主的意思是不是想卸载command-not-found这个包?
原来这是一个包啊

那我注释的那个是干嘛用的?
jtshs256
帖子: 22323
注册时间: 2010-07-19 21:41
系统: OS X

Re: 终端里面打错命令后有个自动提示能关了么?

#9

帖子 jtshs256 » 2012-02-12 13:21

Tab 补全…
躺平
头像
susbarbatus
帖子: 2966
注册时间: 2010-04-10 16:14
系统: Arch Linux

Re: 终端里面打错命令后有个自动提示能关了么?

#10

帖子 susbarbatus » 2012-02-12 13:21

bash-compeletion好东西,别注释掉……
沉迷将棋中……
头像
youqika
帖子: 720
注册时间: 2008-09-25 20:56

Re: 终端里面打错命令后有个自动提示能关了么?

#11

帖子 youqika » 2012-02-12 13:53

卸载command-not-found就可以了,bash-completion别注释,注释了tab补全就残了
UCHIHA
运气是为白痴准备的
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: 终端里面打错命令后有个自动提示能关了么?

#12

帖子 自由建客 » 2012-02-12 18:37

bash-completion 严重影响速度
aerofox
帖子: 1453
注册时间: 2008-05-24 8:30

Re: 终端里面打错命令后有个自动提示能关了么?

#13

帖子 aerofox » 2012-02-13 13:18

我一般都不要 command-not-found这个包,bash-completion功能还是不错的。不过不想用也可以,Tab补全功能还是有的,只不过是不能根据上下文补全了,比如启用了bash-completion,你输入个 aptitude 后按两下 Tab,它可能提示你 install、search、show等等,而如果没启用 bash-completion,就只会列出当前目录下的文件和目录了。
回复