[[ -s "$HOME/.rvm/scripts/rvm" ]]
This part is a test condition ( [[ - new test team). -s returns TRUE if the rvm file rvm present in $HOME/.rvm/scripts/ location exists and is of size greater than zero .
&&
This is the logical operator and . It executes the statement on the right line of the IF AND ONLY IF the statement on the left returns true.
. "$HOME/.rvm/scripts/rvm"
. not suitable for source command. You upload the file to your current shell and do not open a new sub-shell
source share