zsh报错command not found: compdef

2019-05-30 服 务 器 1965 阅读 0 评论

问题描述

在更新oh-my-zsh后提示:

/root/.oh-my-zsh/lib/directories.zsh:32: command not found: compdef

解决方案

rm ~/.zcompdump*
compinit

如果提示chmod 命令后缺少参数执行:

compaudit | sudo xargs chmod g-w 
compaudit | sudo xargs chown root

本文链接:https://blog.clang.cn/827.html

版权声明:转载请注明出处。

评论 (0)

评论已关闭