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:
Code:
gprename-1.24/
gprename_0.92-1_all.deb
gprename-1.24.tar.bz2
install.txt
gprename-icons-1.0.tar.bz2
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:
Code:
gprename_0.92-1_all.deb gprename-1.24.tar.bz2
gprename-1.24/ gprename-icons-1.0.tar.bz2
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.