__rvm_cleanse_variables: function definition file not found

在家里的 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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,554评论 0 13
  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 2,949评论 0 0
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,746评论 0 3
  • 昨晚,简友一只铅笔君发简信找我:加我微信ⅹxx,给你发第二届七星诗会荣誉证书。哇,比赛结果出来了吗,我又中狗屎运获...
    回眸一笑笑阅读 4,235评论 71 93
  • 1 生活中似乎总有这么几个朋友是专门来给你添堵的。 部门里的小艺和T原是一对无话不谈的朋友,但最近小艺对T的态度显...
    灵珂阅读 426评论 0 4