Turn off bash completion?

Mike McCarty Mike.McCarty at sbcglobal.net
Wed Aug 27 15:57:08 UTC 2008


James Wilkinson wrote:
> Mike McCarty wrote:
>> I'd like to disable the bash "completion" feature. I've read
>> the info bash stuff, and I see lots of ways to specify what
>> happens after or during completion, but I didn't see (overlooked?)
>> how to turn it off. Any bash gurus out there know how to disable
>> it entirely?
>>
>> I don't want to turn off line editing, just completion.
> 
> Out of interest – why? The easiest way would surely be just not to use
> it.

[...]

> 
> set disable-completion on
> into ~/.inputrc , and log in again, completion should be disabled.
> You’ll also have disabled the rest of the settings in /etc/inputrc: you
> might like to either copy them across, or try putting
> $include  /etc/inputrc
> into ~/.inputrc .

Hmm, created ~/.inputrc

$ cat ~/.inputrc
include /etc/inputrc
set disable-completion on

Then

$ su - <myself>

to get a login shell, and indeed completion is turned off.
HOWEVER, so is "I". IOW, I can no longer type the letter "i"
in either upper or lower case. I can, however, type in a
tab. Hmm...

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!




More information about the fedora-list mailing list