Getting more helpful tab completion prompts in bash?

Posted by Rory McCann on Server Fault See other posts from Server Fault or by Rory McCann
Published on 2009-09-08T08:52:57Z Indexed on 2010/03/27 17:33 UTC
Read the original article Hit count: 546

Filed under:
|
|
|
|

Let's say I have a directory with a few files in it like this:

$ ls
file1  file2  file3

And I want to do some tab completion in bash:

$ cat file<tab>
file1  file2  file3

I remember seeing someone doing tab completion and the shell bolded the next parts, so in this case, it would bold the 1, 2 and 3 of the filename so it'll look like this:

file**1** file**2** file**3**

which will tell you what you should type in next.

I think this was a feature of zsh, but is there any way to get it in bash?

© Server Fault or respective owner

Related posts about linux

Related posts about shell