Bash console tab-completion in Ubuntu

I used to develop in RedHat and never had the following problem until I switched to Ubuntu:

Whenever I use tab-completion (which is ALL the time) I noticed that depending on what command I am about to execute the behavior differs. For example:

vim fold (tab-tab) will show me the contents of that folder:

vim folder/
file1 file2 file3 etc

If I happen to change the command to 'ls' then behavior changes:

ls fold (tab-tab) -> "ls folder "

Notice the " " space at end of folder - I can't look inside folder with tab-tab, I have to backspace and add '/', which is MOST rage inducing. Where can I go to modify this functionality, or disable completely so it is consistent all the time?

Answers


According to this thread on askubuntu, the answer is to edit the /etc/bash_completion file and somewhere around line 1587 change the keyword default to filenames.

I have not verified. Also, I am running 12.04 LTS and I don't seem to have this problem.


Need Your Help

How do I get count of comments for one news?

c# asp.net

I have a table in database : TBL_News and another one : TBL_Comments

Error Validation not showing in Codeigniter

php codeigniter

I have this code snippet for adding patient in the system but it doesn't show any error messages. I do have validation_errors() in the views but still its not showing any