On my Ubuntu 14.04.3 machine with enabled bash completion (through . /etc/bash_completion
in ~/.bashrc), I do not get directory-content completion for cmd --param=<TAB>
, i.e., nothing is happening when pressing . When I start a pristine bash (e.g. through env -i bash --norc
), it works as expected -- but then no programmable completion is available. I found Bash completion for path in argument (with equals sign present) which talks about a similar issue but 1) the respective npm script is not existing on my machine and 2) even removing all files from /etc/bash_completion.d does not fix the problem. What can I do to get proper completion?
I found one halfhearted fix by running complete -r -D
which prevents bash from trying to complete new commands. This enables completion after equals again, but stops completion, for example, for killall.