LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-30-2006, 12:21 AM   #1
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Rep: Reputation: 31
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?
 
Old 04-30-2006, 12:39 AM   #2
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
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.
 
Old 04-30-2006, 12:41 AM   #3
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
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
 
Old 05-07-2009, 01:59 PM   #4
_s0t0_
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
make sure you are using /bin/bash instead of /bin/sh as your shell
 
Old 06-03-2012, 01:16 PM   #5
dicyan
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Cool Solution

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

Last edited by dicyan; 06-04-2012 at 06:18 AM.
 
Old 06-04-2012, 06:34 PM   #6
stoggy
Member
 
Registered: Jun 2008
Location: Dallas, TX
Distribution: Slackware and FC
Posts: 113

Rep: Reputation: 22
wow man dead thread or what? 2006? Its 2012!!! LOL I do it too. I hit one from 30 years ago once.
 
Old 06-05-2012, 02:08 PM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
Old 05-15-2013, 11:03 AM   #8
philmck
LQ Newbie
 
Registered: May 2013
Posts: 1

Rep: Reputation: Disabled
And the correct answer is...

yum install bash-completion
 
Old 09-12-2013, 01:48 AM   #9
jayasraj
LQ Newbie
 
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by _s0t0_ View Post
make sure you are using /bin/bash instead of /bin/sh as your shell

Using /bin/bash fixed this issue for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shells & Tab complete. sph90457 Solaris / OpenSolaris 1 05-19-2005 03:59 PM
VIM doesn't complete filenames on pressing Tab The Scientist Linux - Software 2 10-13-2004 10:15 AM
tab complete Frustin AIX 4 07-19-2004 02:31 AM
auto-completion - how does it work & can my script args auto-complete? BrianK Programming 1 06-11-2004 04:51 PM
RedHat 7.3 Tab complete and cut and paste rjmagyar Linux - Software 1 10-08-2002 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration