https://github.com/bobthecow/git-flow-completion/wiki/Update-Zsh-git-completion-module
Replace /usr/share/zsh/x.x.xx/functions/_git
In newer versions of OSX this file is restricted
Issue ls -lO /usr/share/zsh/x.x.xx/functions/_git
(capital letter 'oh', not zero);
if you see restricted, SIP is protecting that directory tree.
Solution (from the linked answer):
boot into recovery mode (Command-R during boot)
In terminal, issue crsutil disable
Reboot to normal mode. You should see that SIP is no longer blocking write access.
If you later want to restore SIP, just use crsutil enable in recovery mode.
source: https://superuser.com/a/1159330/8036
https://github.com/bobthecow/git-flow-completion/wiki/Update-Zsh-git-completion-module
Replace /usr/share/zsh/x.x.xx/functions/_git
In newer versions of OSX this file is restricted
Issue ls -lO /usr/share/zsh/x.x.xx/functions/_git
(capital letter 'oh', not zero);
if you see restricted, SIP is protecting that directory tree.
Solution (from the linked answer):
boot into recovery mode (Command-R during boot)
In terminal, issue crsutil disable
Reboot to normal mode. You should see that SIP is no longer blocking write access.
If you later want to restore SIP, just use crsutil enable in recovery mode.
source: https://superuser.com/a/1159330/8036