# Cookiecutter Autocompletion Script # Function to generate the list of templates _cookiecutter_templates() { # List the contents of the $HOME/Templates directory _files -W /home/jack/Templates } # Associate the function with cookiecutter command compdef _cookiecutter_templates cookiecutter