Question

While updating RVM, i got this error:

bash: /contrib/ps1_functions: No such file or directory

Couldn't find any similar question. Does any one know how to solve it? Thanks

Was it helpful?

Solution

I solved this problem this way:

My .bash_profile was like this:

PS1="\$(~/.rvm/bin/rvm-prompt) $PS1" && source "$rvm_path/contrib/ps1_functions" && ps1_set
export PATH="/Users/name/anaconda/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

and pasted the last line into the first:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
PS1="\$(~/.rvm/bin/rvm-prompt) $PS1" && source "$rvm_path/contrib/ps1_functions" && ps1_set
export PATH="/Users/name/anaconda/bin:$PATH"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top