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.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){pri ntf(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!
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
08-27-2008, 06:00 AM
James Wilkinson
Turn off bash completion?
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@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
08-27-2008, 03:51 PM
Mike McCarty
Turn off bash completion?
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.
Because I find that I'm frequently hitting TAB when intending
to use CAPS-LOCK and getting extraneous stuff in my command line
which I then have to edit back out.
The bash man page says:
disable-completion (Off)
Thanks! I don't know how I missed that in the info pages. Or
perhaps man is more informative than info. Anyway, looks like what I
need...
[...]
Hope this helps,
I haven't tried it, but I'm sure it's perfect.
Thanks!
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){pri ntf(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!
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
08-27-2008, 03:57 PM
Mike McCarty
Turn off bash completion?
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(){pri ntf(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!
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
08-27-2008, 04:01 PM
Frank Cox
Turn off bash completion?
On Wed, 27 Aug 2008 10:51:55 -0500
Mike McCarty <Mike.McCarty@sbcglobal.net> wrote:
> Because I find that I'm frequently hitting TAB when intending
> to use CAPS-LOCK and getting extraneous stuff in my command line
> which I then have to edit back out.
Have you considered re-arranging your keyboard layout?
(System-Preferences-Hardware-Keyboard)
--
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
08-27-2008, 04:45 PM
Mike McCarty
Turn off bash completion?
Frank Cox wrote:
On Wed, 27 Aug 2008 10:51:55 -0500
Mike McCarty <Mike.McCarty@sbcglobal.net> wrote:
Because I find that I'm frequently hitting TAB when intending
to use CAPS-LOCK and getting extraneous stuff in my command line
which I then have to edit back out.
Have you considered re-arranging your keyboard layout?
(System-Preferences-Hardware-Keyboard)
It isn't I feature I would use, anyway. I have it turned off
in my web browser, for example. As mentioned by the previous
responder, I could just "not use it", except that I find
it happening from time to time unexpectedly, and irritatingly.
I don't like the feature, and if it didn't intrude occasionally,
I'd just ignore it.
Rearranging my keyboard in order not to take advantage of a feature
I don't like doesn't sound appealing for some reason.
I was wrong about the error I encountered. I can type "I" but not "i".
I wonder why it went away?
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){pri ntf(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!
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
08-27-2008, 05:30 PM
Todd Zullinger
Turn off bash completion?
Mike McCarty wrote:
> Hmm, created ~/.inputrc
>
> $ cat ~/.inputrc
> include /etc/inputrc
I believe you should have '$include /etc/inputrc', and not
'include /etc/inputrc'.
> 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...
Well, that will keep your ego in check.
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
If you can stay calm, while all around you is chaos ... then you
probably haven't completely understood the situation.
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
08-27-2008, 06:59 PM
g
Turn off bash completion?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mike McCarty wrote:
<snip>
> 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...
i have used same .bashrc from years back because of aliases i have built.
it contains;
[ -z $INPUTRC ] && export INPUTRC=/etc/inputrc
i do not have a '~/.inputrc'.
you might want to look at your '.bashrc' and '/etc/inputrc' files to
see just what they contain.
- --
tc,hago.
g
.
in a free world without fences, who needs gates.
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html.gz
'The Linux Documentation Project' http://www.tldp.org/
'HowtoForge' http://howtoforge.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
08-27-2008, 07:03 PM
James Wilkinson
Turn off bash completion?
I wrote:
> 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 .
Mike McCarty replied:
> 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...
Weird.
If I use your .inputrc, then lower-case i stops working for me, too.
However, if I put the $ into the $include command, then the i key works
properly.
But you might, instead, like this ~/.inputrc :
$include /etc/inputrc
"C-i": self-insert
That will unbind completion from the tab key, but leave it working if
you pressing escape twice (which also works on some variants of ksh when
tab doesn't work).
Hope this helps,
James.
--
E-mail: james@ | The attitude ``The computer said so, so it must be
aprilcottage.co.uk | right' is always amusing to the people who program them.
| -- Geoff Lane
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
08-27-2008, 07:38 PM
g
Turn off bash completion?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Wilkinson wrote:
<snip>
> If I use your .inputrc, then lower-case i stops working for me, too.
>
> However, if I put the $ into the $include command, then the i key works
> properly.
'$' defines a *string variable* and must be present.
man bash
- --
tc,hago.
g
.
in a free world without fences, who needs gates.
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html.gz
'The Linux Documentation Project' http://www.tldp.org/
'HowtoForge' http://howtoforge.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines