I’ve decided to try out zsh for a while, and while I already get completions for most everything I want, out of the box, I am missing completions for Capistrano tasks.
I had been using brynary’s Bash Capistrano completion script. I was able to find a mailing list post about setting up Capistrano task completions for zsh, but it didn’t quite work for me. (
show_tasks isn’t a valid task.) I also didn’t like throwing the
.cap_tasks file in the top-level of the project. I already had a
~/.zsh_cache/ directory for caching zsh’s completions, so I decided to modify the script I found to put the cache file there, instead.
I have the above in
~/.zsh.d/S50_capistrano, which automatically gets loaded on startup by the following in my
Update (2010-09-29): Use archive.org link to brynary’s blog post.