Friday, May 3, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1058  / 1 Year ago, tue, february 21, 2023, 1:08:07

I want to create a profile terminal that executes this command rvm use 1.9.2 and leave me in the prompt after choosing my ruby version.



user@user-desktop:~/Sites/RailsApp$ rvm use 1.9.2  
Using /home/user/.rvm/gems/ruby-1.9.2-p290


I've tried to put in "Run a custom command instead of my shell Custom command" like I saw here but this doesn't work:



bash -l -c "rvm use 1.9.2"


Thanks in advance.


More From » command-line

 Answers
3

You can put that command in ~/.bashrc but it'll be invoked each time you open a new terminal (not for login terminals though).


[#37318] Tuesday, February 21, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
strhen

Total Points: 27
Total Questions: 111
Total Answers: 103

Location: Angola
Member since Tue, Apr 25, 2023
1 Year ago
;