My folders are named by date:
20140930DoingShellStuff20140931HopefullyShellIsDone- ...
What I want to do is write a shell script to auto cd into the folder which corresponds to the current date. I already know how to format the date:
date +"%Y%m%d"
output: 20140930
But I don't know how to do the autocompletion:
cd $(date +"%Y%m%d") **tab for autocopmlete**
to get the output of: cd 20140930DoingShellStuff
Related link: Add autocompletion for custom script
cdcommand? Assuming you are inbashand that there won't be two folders with the same date. E.g.cd $(date +"%Y%m%d")*completecommand works