Click to See Complete Forum and Search --> : Bash autocomplete config help needed


SubPar
12-09-2000, 11:08 PM
Okay, this one's driving me crazy. In Mandrake, when I type a partial filename and press tab, it gets completed as far as possible, then it lists the possible choices from there. But I just did a full Linux From Scratch install, and I can't for the life of me figure out how to configure bash to treat the tab key the way Mandrake has it. I've waded through man pages, info pages, HOWTOs, and even tried to make sense of the Mandrake scripts, and I still don't know how to do it.

By default, bash in LFS autocompletes as far as it can, then beeps if there's multiple possibilities to finish it. To actually see the possible completions, I have to hit tab two or three times, and it's really annoying because it beeps every damn time. Can anybody help?

SubPar
12-10-2000, 11:05 PM
I found the answer!

When reading the bash man page, I had read the "completion" section, but not the Readline variables section. It turns out all I had to do was add "set show-all-if-ambiguous on" to my /etc/inputrc file.

------------------
Got Konq (http://www.konqueror.org/)?