Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make completions available in zsh #518
I'm using oh-my-zsh as my default command line tool, when adding the completion to my .zshrc the command is not recognized.
It would be a nice feature if zsh is supported as well.
added a commit
Jun 19, 2013
Can anyone confirm this? I updated my .zshrc with the lines from the updated instructions in 6c919d6f08823db6bf39a5da7dab4c5559fe7d27 and am still getting this error when opening a new shell:
Using zsh 5.0.2 on OS X 10.8.4 with Oh-My-ZSH installed as well.
The line that seems to trigger it is the call to the auto-completions file:
For anyone who needs this without having installed WP-CLI via Composer, you can set it up manually by copying the contents of master/utils/wp-completion.bash to a local ~/wp-completion.bash file, and adding these lines to .zshrc (or .zshprofile I assume, not sure, I use oh-my-shell):
# WP-CLI Bash completions autoload bashcompinit bashcompinit source $HOME/wp-completition.bash
Thank you very much for your help @jorgeorpinel ! I made a script to install the completion into zsh (OhMyZsh!). Maybe it can be useful for anyone: