LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-16-2001, 09:07 PM   #1
hazza96
Member
 
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146

Rep: Reputation: 15

I have just installed RH 7.1 on a 486.

I am used to Mandrake, one of the little differences that is annoying me is the difference between the autocomplete's.

With Mandrake you type in 'lin' hit <TAB>, it then completes linux and lists 'linuxconf' and 'linux_logo'.

With RH it completes linux and beeps at you, you then have to hit <TAB> again and it lists both programs and beeps again.

Where is this set and how do I change RH to do the same as LM.
 
Old 06-17-2001, 10:25 PM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
It's probably set in your .inputrc file. I messed around with it and came up with something, but not quite like you wanted. The .inputrc files are in the user's home directories and there should be one in the /etc directory. If you could get a peek at LM .inputrc file, you could copy it.
This is what I added to my home directory .inputrc:

C-x!: complete
TAB: possible-command-completions

The info about this is contained in the man page for bash.
 
Old 06-18-2001, 04:18 AM   #3
hazza96
Member
 
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146

Original Poster
Rep: Reputation: 15
That last line just cracked me up, the man page ha ha ha your funny 'man' ha ha ha.. I didn't go to Uni and do a course in computers so I can't make sense of 90% of the man pages, because that's who they are aimed at.

If I knew enough to make sense of the man pages I wouldn't need to come here.

Having said that I am very grateful that you answered and probably gave me the answer I was looking for. I will backup the current inputrc file and copy my LM one to the RH machine and let you know how it goes.

I don't have a .inputrc file in any of the home dir's so I will alter the /etc/inputrc

Thanks again.
 
Old 06-18-2001, 12:53 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by hazza96
That last line just cracked me up, the man page ha ha ha your funny 'man' ha ha ha.. I didn't go to Uni and do a course in computers so I can't make sense of 90% of the man pages, because that's who they are aimed at.
I love the man pages, they are an excellent resource. They can be confusing at times but they are excellent to see what you can use or options you can use with any particular command.

Oh well, they always help me out.
 
Old 06-21-2001, 05:47 AM   #5
hazza96
Member
 
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146

Original Poster
Rep: Reputation: 15
I didn't say the man pages were useless.... I said they are VERY hard to understand.

Anyway linuxcool was spot on the money it is the /etc/inputrc file.

I copied the file from my LM box to the RH box and it works just like I want it to.
 
Old 06-21-2001, 09:59 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome. I'm curious about the code. Could you post a copy?
 
Old 06-22-2001, 01:09 AM   #7
hazza96
Member
 
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146

Original Poster
Rep: Reputation: 15
Don't ask me to make sense of it, I just know that it works
______________________________________________
## Linux-Mandrake Configuration
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>, Pablo Saratxaga <pablo@mandrakesoft.com>
# $Id: inputrc,v 1.4 2000/03/27 12:13:17 chmouel Exp $


# Show all if ambigious.
set show-all-if-ambiguous on

# 8Bits supports.
set meta-flag on
set convert-meta off
set input-meta on
set output-meta on

# Keyboard configuration
"^[[2~": yank # Insert
"^[[3~":delete-char # Suppr

"^[[1~": beginning-of-line # Home
"^[[4~": end-of-line # End

"^[[5~": previous-history # Previous
"^[[6~": next-history # Next

# those two are for rxvt
"\e[7~":beginning-of-line
"\e[8~":end-of-line

# on some xterm
"\e[H": beginning-of-line
"\e[F": end-of-line

# on nxterms
"\e[\C-@": beginning-of-line
"\e[e": end-of-line

$if term=xterm
#
# Application keypad and cursor of xterm
# with NumLock ON
#
# Operators
"\eOo": "/"
"\eOj": "*"
"\eOm": "-"
"\eOk": "+"
"\eOl": "+"
"\eOM": accept-line

# Colon and dot
# "\eOl": ","
"\eOn": "."

# Numbers
"\eOp": "0"
"\eOq": "1"
"\eOr": "2"
"\eOs": "3"
"\eOt": "4"
"\eOu": "5"
"\eOv": "6"
"\eOw": "7"
"\eOx": "8"
"\eOy": "9"
$endif

#
# Application keypad and cursor of xterm
#
"\eOD": backward-char
"\eOC": forward-char
"\eOA": previous-history
"\eOB": next-history
"\eOE": re-read-init-file
___________________________________________________
 
Old 06-22-2001, 04:53 PM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Thanks Harry. This will keep out of trouble for quite a while.
 
Old 06-24-2001, 05:37 PM   #9
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Harry, I figured out which code in the listing is the one that performs the operation you wanted. It's this : set show-all-if-ambiguous on . The rest of the listing, except for the lines that start with ' set ', create macros.
 
Old 06-24-2001, 11:13 PM   #10
hazza96
Member
 
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146

Original Poster
Rep: Reputation: 15
Well, next time I setup a RH system I can just add that line in.

You learn something new every day.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Autocomplete my username... fatrandy13 Linux - General 3 10-14-2005 04:02 PM
Mozilla Autocomplete pdohman Linux - Software 5 10-02-2003 08:51 PM
command - autocomplete ethanchic *BSD 8 04-26-2003 12:02 AM
autocomplete figadiablo Linux - General 6 03-13-2002 04:19 PM
autocomplete marksstroud Linux - Newbie 1 11-11-2001 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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