質問

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

役に立ちましたか?

解決

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"
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top