cygwin file path tab completion not working

bash, cygwin

Solution

Cygwin paths typically start with `/cygdrive/c` (substitute whatever drive letter you happen to be using, of course). So to complete `c:\Program Files`, you must type (for instance) /cygdrive/c/Prog and then press TAB.

Also, note that Cygwin is case-sensitive, so `/cygdrive/c/prog` would not complete to `c:\Program Files` due to the lowercase 'p'.

Problem

How can I set up Cygwin to have tab completion? Actually, I do have it automatically, but it does not seem to complete paths. How do I set it up to complete paths?

Original source