LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-05-2004, 09:45 PM   #1
gSalsero
Member
 
Registered: Jan 2004
Location: Denver, CO USA
Distribution: Open Suse 10.0, Windows XP Home & Pro & Media Center, Mac OS X
Posts: 36

Rep: Reputation: 15
case-insensitive auto-complete


Is there a way to configure the terminal auto-complete so that it is case-insensitive? I am running Suse 9.0 using the Konsole terminal. Also, is there a central place to get al the commands available in the terminal, such as ls, cd, ctrl+r, etc..?

thanks!
 
Old 06-05-2004, 10:11 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
I'm not too sure about case-insensitive autocomplete (though it would be nice sometimes!) As for your second question though, it depends what sort of utilities you have installed. Of course, if you have more software installed, there will be a wider variety of commands available from the console, but there are a lot of standard ones. Some, such as 'cd', are provided by the shell (usually bash, if you're using Linux), and others, such as 'ls' are provided by separate programs.

I'd suggest checking out RUTE, an extremely thorough introduction to Linux. A much more concise introduction to the basics is the Linux Cookbook. Also, this article gives a nice overview of most of the useful console commands. Last but not least, there's a list of useful commands here on the LinuxQuestions Wiki. There's plenty more if you do some google searching. Good luck!
 
Old 06-08-2004, 12:32 AM   #3
gSalsero
Member
 
Registered: Jan 2004
Location: Denver, CO USA
Distribution: Open Suse 10.0, Windows XP Home & Pro & Media Center, Mac OS X
Posts: 36

Original Poster
Rep: Reputation: 15
thanks! I've been looking for tutorials like those for quite some time now.

FYI....

add the following to your /etc/inputrc

set completion-ignore-case On

for case-insensitive autocomplete.

it doesn't work exactly like I hoped (I'm used to the ESC-ESC functionality in MKS), but it'll do.

Now I'm going to try to bind a keystoke to do exactly what I want it to do.

thanks again!
 
Old 06-08-2004, 07:33 AM   #4
gSalsero
Member
 
Registered: Jan 2004
Location: Denver, CO USA
Distribution: Open Suse 10.0, Windows XP Home & Pro & Media Center, Mac OS X
Posts: 36

Original Poster
Rep: Reputation: 15
ok, I figured it out. What I actually needed bound was filename-completion instead of completion. I bound \e\e (esc esc) to filename completion and it now works exactly like I wanted. The TAB key is bound to completion which includes commands and function names in the completion along with filenames. In fact, I beleive the commands and function names take precedence over filenames. This was the behavior I wasn't expecting. But fllename-completion works like I expected. Thanks again for the reference material you posted. Priceless information.



in FC3 it's complete-filename

Last edited by gSalsero; 12-12-2004 at 10:05 PM.
 
  


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
how to search in VI wih case insensitive lordofring Programming 7 11-16-2011 08:11 AM
having fstab-sync mount fat case-insensitive eliotstock Linux - General 9 06-05-2005 12:55 PM
case insensitive search command ColKurtz Linux - Newbie 4 01-20-2005 07:02 AM
auto-completion - how does it work & can my script args auto-complete? BrianK Programming 1 06-11-2004 04:51 PM
bash auto-complete behaviour changes acid_kewpie Linux - Software 5 10-26-2002 01:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:38 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