"compdef: unknown command or service: git" and tab completion broken #5442
Description
I'm running Homebrew'd zsh 5.2 on OS X (Yosemite) and I've broken the permissions such that I'm now always getting:
compdef: unknown command or service: git
compdef: unknown command or service: git
...before the prompt shows and tab completion has stopped working. This is basically the same as #4698, but my circumstances are different so I've not yet been able to resolve the problem.
I broke the permissions by running sudo chmod -R a+rw /usr/local
as my local admin user (not root -- I don't have root -- but a member of the admin
group). Zsh is installed via Homebrew, through this local admin user; but OMZ is just installed in my regular user's $HOME/.oh-my-zsh
.
I've tried changing the permissions and ownership of the files/directories that compaudit
complains about, but to no avail. (See also my post on Super User.) I also tried completely uninstalling -- removing them entirely from my system -- and reinstalling OMZ and zsh in the hope that it would reset things. Nope 😕
This problem only occurs when OMZ is installed. Vanilla zsh worked fine.
FWIW, the output of ls -ld $(compaudit)
is as one would expect: 0644
for files (0755
for directories) for ch12_admin:admin
and some in wheel
(my regular user is ch12:1312
). In detail:
Activity