help with bash tab completion behavior

Christopher J. Bottaro cjbottaro at alumni.cs.utexas.edu
Fri Jul 21 20:07:48 UTC 2006


Art Alexion wrote:

> On Friday 21 July 2006 11:51, Christopher J. Bottaro wrote:
>> 1)
>> Assume a symlink to a directory named 'my_dir'.
>> 'my_d<tab>' results in 'my_dir', then a second tab actually changes it
>> to 'my_dir/'.  I'd like 'my_d<tab>' to directly result in 'my_dir/'.
> 
> This is a matter of choice, not a bug.  To change it, you have to
> edit /etc/bash_completion

I know, I never said it was a bug...:)  I said I'm an old Redhat user and I
was asking how to change bash completion in Kubuntu to be more like
Redhat...:)

And yeah, I know I have to edit /etc/bash_completion, but have you looked at
that file??  It's pretty big!  ..and I don't understand 90% of it!  I was
hoping for a more direct answer.

>> 2)
>> Assume a file dir1/dir2/file1 that I want to commit in cvs.
>> 'cvs commit di<tab>' results in 'cvs commit dir1 '.  Notice the trailing
>> space.  That is completely useless, because now I have to backspace and
>> manually type a slash to be able to continue tab completing to my target
>> file.
> 
> I don't know if this is a Dapper bug or just a bad installation.  Works as
> expected for me.
> cvs commit di<tab> yields cvs commit dir1/
> I am using breezy.

Hrm.  Oh well, 'mv /etc/bash_completion /etc/bash_completion.bak' solved
this problem for me...but now I don't get any dir colors in my completion
list (heh, did I before??, I can't remember, but I assumed so).

I don't think it's a bad installation because I've installed Dapper on 2
computers and it's the same on both.

Peace.






More information about the kubuntu-users mailing list