I was getting this error when opening new zshell:
__rvm_cleanse_variables: function definition file not found
command not found: rvm_error
Running the following solved the problem:
rm -f ~/.zcompdump*
Note: The * is incase there are multiple .zcompdump files.
So what goes behind the scenes:
ZSH uses compinit to