ZSH complains about RVM __rvm_cleanse_variables: function definition file not found

旧巷老猫 提交于 2019-12-03 01:32:45

问题


When using the latest ZSH and RVM on Mac OS X 10.7.4 ZSH complains about this:

__rvm_cleanse_variables: function definition file not found


回答1:


Running the following solved the problem:

rm -f ~/.zcompdump*

Note: The * is incase there are multiple .zcompdump files.




回答2:


Sometime there is also ~/.zcompdump-<COMPUTER NAME>-<VERSION> file, so use:

rm -f ~/.zcompdump*



回答3:


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.

(source: http://www.csse.uwa.edu.au/programming/linux/zsh-doc/zsh_23.html)




回答4:


My problem persisted even after the compinit -D and rm -f ~/.zcompdump*. I found this github issue and checked my .zplug directory and sure enough found some non-hidden zcompdump files (no preceding '.'). Deleted those and I was good to go. If you're using a zsh plugin manager like zgen or zplug, check their directories.




回答5:


Add rm -f ~/.zcompdump{,.zwc} to .zlogin to automate it



来源:https://stackoverflow.com/questions/10585002/zsh-complains-about-rvm-rvm-cleanse-variables-function-definition-file-not-fo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!