How to get
bash to auto-complete
cd commands only with directory names and ignore filenames (just as CMD on Windows)
-rwxr-xr-x filesharp -rwxr-xr-x fileshallow -rwxr-xr-- file drwxrwxrwx files
I want that when I enter
bash auto-completes it as
cd /home/dds/files not having to enter
s manually: there's only a single directory matching my prefix.
EDIT: Solution found up to this point (add
autocomplete -d cd to
Also would be great to have the "scroll trough names", available on Windows, when each time I press Tab I get the completion for a single file (or folder) matching the prefix I entered.