2
I’m learning Ruby through an Alura course and I have a question.
Every time I want to execute a Rails command, for example startar the server with the command rails server
the following error occurs :
bash: /usr/local/bin/Rails: /usr/bin/ruby2.3: invalid interpreter: File or directory not found
To solve this, every time the terminal is opened I run the command below:
source /home/wagner/.rvm/scripts/rvm
My question is: Is there any way to automate the execution of the source command /home/wagner/.rvm/scripts/rvm
? It’s getting boring having to run it every time the terminal is opened.
It worked, thank you very much.
– Wagner Rodrigues