0
1
On my Fedora 19 system tab completion doesn't work for bash scripts when I have a sh
at the beginning of the command line unless the script filename ends with a .sh
.
That is, if I type:
$ sh file<tab>
And the current directory contains:
filename
...tab completion doesn't work.
But if the current directory contains:
filename.sh
Completion works.
Completion works for everything else, so I suspect that there is a custom completer for commands that begin with sh
and it is looking for files that end .sh
.
Is there an easy way to fix this? I want to fix it for my user, not for all users, because I don't want to modify the operating system.
1As @AlexanderPoteriachin pointed out, if you type
filename
yourself and the file is namedfilename
there nothing more to complete. Do you mean you type e.g. onlyfilen
and[TAB]
is not working? – mpy – 2013-07-17T11:36:56.133