After installing rvm, using the following:
$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer > rvm-installer
$ bash rvm-installer
I did the following as advised in the rvm site:
$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
$ source .bash_profile
-sh: is_a_function: command not found
When I looked up the installation output, I see that this error has been reported during the installation too (though I also see: “Installation of RVM to /Users//.rvm/ is complete.”)
I looked up the rvm scripts and I am able to see the function is_a_function in utility script.
Please advise on what I need to do now to fix this.
P.S.: I had to download the installer locally since I kept getting the following error:
$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
-sh: syntax error near unexpected token `<'
I was getting the same error, but switching to stable version seems to have fixed it.
Did work: