ohmyzsh: compdef: unknown command or service: rails after changing "rails3" plugin to "rails"
After changing rails3 to rails in my zshrc, I got this error:
compdef: unknown command or service: rails
PS. I’m using rbenv.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 27
On my machine at work
rm -f ~/.zcompdump*; compinitfixed the issue. On my machine at home and on a colleagues machine that didn’t help.@drakmail Try something like
chmod -R go-w ~/.oh-my-zshto fix the permissions, verify it’s fine usingcompauditand then rerunrm -f ~/.zcompdump*; compinit.Fixed it by doing:
compaudit | xargs chmod g-w compaudit | xargs chown root rm -f ~/.zcompdump*; compinit
Any downsides to this method; am I okay permissions wise? Thanks!
fix for me (rbenv) rbenv rehash