I was reading the answer here: How to change rvm install location
it keeps referencing the below variable:
"${rvm_path-$HOME/.rvm}/scripts/rvm"
I know that I have $rvm_path and $HOME set, but I don't understand what the whole excerpt means.
I was reading the answer here: How to change rvm install location
it keeps referencing the below variable:
"${rvm_path-$HOME/.rvm}/scripts/rvm"
I know that I have $rvm_path and $HOME set, but I don't understand what the whole excerpt means.
This is a parameter expansion.
If a variable named rvm_path
exists, it is expanded. Otherwise, $HOME/.rvm
is used instead. Regardless, /scripts/rvm
is appended to the result.