__rvm_cleanse_variables: functio

作者: 许一沐 | 来源:发表于2020-02-27 17:22 被阅读0次

    在家里的 air 上配置zsh开启自动完成插件后出现这个错误

    几经尝试找到相应的解决方法,现记录如此,留以备用

    rm -f ~/.zcompdump*

    为什么会出现此问题呢?

    ZSH使用compinit初始化当前会话的完成。为了加快compinit的运行速度,可以让它生成一个转储配置,该配置将在以后的调用中读取。此转储文件与启动文件位于同一目录下的.zcompdump(即$ZDOTDIR$HOME

    ZSH uses compinit to initialize completion for the current session. To speed up the running of compinit, it can be made to produce a dumped configuration which will be read in on future invocations. This dumped file is .zcompdump in the same directory as the startup files (i.e. $ZDOTDIR or $HOME).

    另一种方法:

    To disable the .zcompdump* file(s), you could look in your .zshrc (or /etc/zsh/* files) for compinit and add the -D flag.
    This might be better than creating the files and deleting them at every login.

    参考

    http://s.amlove.cn

    相关文章

      网友评论

        本文标题:__rvm_cleanse_variables: functio

        本文链接:https://www.haomeiwen.com/subject/acjxhhtx.html