LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   autocomplete (https://www.linuxquestions.org/questions/linux-general-1/autocomplete-16155/)

figadiablo 03-13-2002 02:26 AM

autocomplete
 
How do I enable autocomplete in Linux?
I am running Red Hat 7.2, about the only thing I dont like is that the auto complete thing (hitting esc twice after typing a few letters and the word appears) is not working. It worked in version 7.1, don't know what happened here.
Any ideas? :confused:

acid_kewpie 03-13-2002 02:49 AM

hmm, i never even knew two escapes did anything... any idea where that originates from?

just use the tab key instead.

neo77777 03-13-2002 08:16 AM

Esc thing works in csh, tab is for bash.

Mik 03-13-2002 08:43 AM

The tab is used to autocomplete commands. But pressing esc two times is used for completing file names in the current directory. I use it both for ksh and bash so I don't think it's csh specific.
If I type ls ab<esc><esc> then it will complete the command to be ls abcd if there is a file called abcd in the current directory.

acid_kewpie 03-13-2002 09:00 AM

not in bash it doesn't, seems to have *exactly* the same functionality as tab

Mik 03-13-2002 10:13 AM

Well that's what I was trying to say. Pressing the esc key twice is not the same as using the tab key.
I think the tab key is bash specific though because it doesn't work on ksh in linux or unix.

figadiablo 03-13-2002 04:19 PM

hey tahnks everybody, the tab works. Hehe newbie mistake :D . its weird cause I used to use the esc key for this...


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