> ## Content Index
> Fetch the complete content index at: https://til.codes/llms.txt
> Use this file to discover other available public pages before exploring further.

# RVM error when starting zsh __rvm_cleanse_variables: function definition file not found
- URL: https://til.codes/rvm-error-when-starting-zsh-rvm_cleanse_variables-function-definition-file-not-found/
- Published: 2016-04-22T05:32:00.000Z
- Updated: 2016-12-16T06:04:35.000Z
- Author: Manu Ajith
- Tags: shell, osx, terminal, rvm, zsh, #Import 2024-07-13 21:01

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 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`)