Ok, so I ran the export PATH command without understanding the consequences and faced the same error, but I also lost control of my typical commands like cd and pwd. I did not want to reset the rvm tools that I already installed to some of the answers above.
The first attempt was some default path for Mac (found on google):
$ export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
Actually, I solved the first problem of not having access to my typical command line tools, but still getting the same error as the problem with @Santosh. The next thing I did was go to my directory, where I installed rvm to run, and then run a new export command as follows:
$ export PATH="$PATH"
This is how I originally set up rvm, and no more errors. Hope this helps someone.
bgillies Mar 04 '17 at 19:23 2017-03-04 19:23
source share