0

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?

tshepang
  • 12,111
  • 21
  • 91
  • 136
NindzAI
  • 570
  • 5
  • 19

1 Answers1

2

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.

Community
  • 1
  • 1
Dave
  • 3,428
  • 30
  • 28