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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
I have the above in ~/.zsh.d/S50_capistrano, which automatically gets loaded
on startup.
1 2 3 | |
Update (2010-09-29): Use archive.org link to brynary’s blog post.