ZSH complains about RVM __rvm_cleanse_variables: function definition file not found

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


Solution 1:

Running the following solved the problem:

rm ~/.zcompdump*

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

Solution 2:

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

rm -f ~/.zcompdump*