Re: Turn off bash completion?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

The bash man page says:
   disable-completion (Off)
      If set to On, readline will inhibit word completion. Completion
      characters will be inserted into the line as if  they  had been
      mapped to self-insert.

Earlier, it mentions where to put this:
   Readline Variables
      Readline has variables that can be used to further customize its
      behavior.  A variable may be set in the inputrc file with a
      statement of the form

              set variable-name value

On Fedora, /etc/profile sets the inputrc file to /etc/inputrc unless
~/.inputrc exists when you log in (or the environment variable INPUTRC
has been set).

So if you put
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 .

Hope this helps,

James.

-- 
E-mail:     james@ | Blessed are the pessimistic, for they take backups.
aprilcottage.co.uk | 

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux