Update: I had the filename as
drush.autocomplete.sh, but the filename should now be
drush.complete.sh. Brent noticed this. The info below as been updated as such.
I was able to get drush autocompletes working with Zsh thanks to this stack exchange post
- Save drush.complete.sh to your local file system
- Add the following to your
- Source the changes:
$ source ~/.zshrc
Now you can enjoy drush autocompletions in zsh style! For example,
$ drush sql followed by tab will give you a browsable list of all the drush sql related commands.