LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Tab does not auto-complete in terminal (http://www.linuxquestions.org/questions/fedora-35/tab-does-not-auto-complete-in-terminal-440190/)

General 04-30-2006 01:21 AM

Tab does not auto-complete in terminal
 
I am used to hitting tab to list possible matches, in a bash terminal.

Ex.
Code:

$ cp image<tab>
image01.png
image02.png
image10.png
image11.png
$ cp image1<tab>
image10.png
image11.png
$ cp image11<tab>
automatically changes it to:
$ cp image11.png

Fedora Core 5 does not seem to do this. How can I add this feature in?

Penguin of Wonder 04-30-2006 01:39 AM

Alot of times you have to hit tab multiple times in order for this feature to kick in. I know I do in Gentoo using Fluxbox.

ataraxia 04-30-2006 01:41 AM

It's probably the readline config that's different. Put into your ~/.inputrc:
Code:

set show-all-if-ambiguous on
set show-all-if-unmodified on


_s0t0_ 05-07-2009 02:59 PM

make sure you are using /bin/bash instead of /bin/sh as your shell

dicyan 06-03-2012 02:16 PM

Solution
 
Just:
1. Log as root
2. Press middle (scroll) mouse button in the terminal emulator! (show all ambiguous on)
Voala!

stoggy 06-04-2012 07:34 PM

wow man dead thread or what? 2006? Its 2012!!! LOL I do it too. I hit one from 30 years ago once.

David the H. 06-05-2012 03:08 PM

Not to mention that the post that resurrected it doesn't actually provide a solution to the original question. A middle-mouse click generally just pastes the current x-selection. I'm not at all sure what the poster is really thinking. :scratch:

philmck 05-15-2013 12:03 PM

And the correct answer is...
 
yum install bash-completion

jayasraj 09-12-2013 02:48 AM

Quote:

Originally Posted by _s0t0_ (Post 3533689)
make sure you are using /bin/bash instead of /bin/sh as your shell


Using /bin/bash fixed this issue for me.


All times are GMT -5. The time now is 10:42 PM.