I have a folder with subfolders named like this:
1122334 important things
1122335 less important things
1122336 notes
1122337 pictures of kittens
etc
The numbers at the beginning are date codes. If it was up to me, I would put the date codes at the end, but it isn't.
In bash, I'd like to do something like this:
$ cd *pictu<tab>
and get this
$ cd 1122337\ pictures\ of\ kittens/
Is there a simple way to do this, or something I can put in my .bashrc
to make this possible?
zsh
can do this. Another option would be tocd *pic*
which will move you to the directory but not tab expand its name.cd *pic*
if that expands to a single directory, zsh can also tab expand the name if you start typingpic<TAB>
which bash won't. If that is all you needed should I post it as an answer?