I often come across bash getting in my way when I'm doing something like this:
cmake -DCMAKE_INSTALL_PREFIX=/usr/<TAB><TAB>
Apparently, bash doesn't see that cmake
can accept paths and I don't get anything suggested for completion. This happens for instance on Ubuntu 14.04 with bash 4.3.42
. It doesn't happen on Ubuntu 12.04 with bash 4.2.25
and on BLFS with manually-compiled bash 4.3.39
.
As a workaround I have to insert ls
at the beginning of the line, add a space between =
and the path, and only then does bash show me the completion options. After I've written the whole path I now have not to forget to remove the added workaround.
How can I setup bash to behave without this smartness — i.e. to always suggest paths if it doesn't have any other suggestions?