I recently worked on creating a bash completion script for one of my toy projects and I enjoyed it very much.