Is there a way within the bash shell to make the 'cd' (change directory) command and tabbing only present you with directories as options?
What I mean is this, say my current working directory has these contents:
When I use the 'cd' command with a 'g' and then hit tab (literally 'cd g' then tab twice), I expect it to only show me directory options in the list.
In fills out the 'g' with 'gprename' and shows me:
Now, there is only one directory there. I want to know if I can make cd only give me the option of using directories when I double tab.
BTW, I am sure this has been posted about in threads already, but the search criteria is too general for me to find anything.