LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-15-2006, 09:52 PM   #1
Grasshopper
Member
 
Registered: Nov 2003
Location: CT, USA
Posts: 55

Rep: Reputation: 15
tab completion - single press for possibilities - Kubuntu 6.06


How do all.

THE PROBLEM: When I'm using tab-completion from within a shell I have to press the tab button twice in order to get a list of the possibilities.

What I've got right now

Code:
shell> cat /var/lo*<tab press>*
Nothing happens.


If I press the tab button twice:

Code:
shell> cat /var/lo*<tab press>**<second tab press>*
local/ lock/  log/
shell> cat /var/lo
WHAT I WANT: I'd like it so that after a single tab press with more than one possibility for completion I was shown the possibilities like in my second example above.

Now, to be fair the double tab press is the default, intended, behavior. However, in the past (I believe I was using Mandrake/Mandriva at the time) a single tab press that didn't have one and only one possible completion would immediately list the possibilities. Any way to get the same functionality under ubuntu/kubuntu?

Thanks all, enjoy!
 
Old 11-15-2006, 10:04 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You probably want either
set show-all-if-ambiguous
or
set show-all-if-unmodified
in your ~/.inputrc. The bash man page describes these options.
 
Old 11-15-2006, 10:42 PM   #3
Grasshopper
Member
 
Registered: Nov 2003
Location: CT, USA
Posts: 55

Original Poster
Rep: Reputation: 15
Nice Work!

I added "set show-all-if-ambiguous" to my ~/.inputrc and that seemed to do it.

Code:
shell> echo "set show-all-if-ambiguous" >> ~/.inputrc
For anyone wondering, this appeared in the bash man page around line 2642 for me.

Code:
shell> man bash
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Tab completion with sudo extrasolar Slackware 8 08-22-2006 02:46 PM
adding an option to a 'tab' completion + ls whatnoname Linux - Newbie 2 06-07-2005 07:32 AM
tab completion with scp fsbooks Linux - General 5 04-07-2005 03:13 PM
How can I turn on/install tab completion which I am so used to. jimdaworm *BSD 2 04-06-2005 11:25 PM
apt-get tab completion atheist Debian 6 06-11-2004 08:25 PM

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

All times are GMT -5. The time now is 12:24 AM.

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