1

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.

  • you can put that command in ~/.bashrc but it'll be invoked each time you open a new terminal(not for login terminals though). – Samik Jun 24 '12 at 20:10
2

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

0
  1. Create a script, e.g. /home/username/.gnome-terminal-rvm.sh:

    rvm use 1.9.2
    exec "$SHELL"
    
  2. Give it execute permissions

  3. Set the script as the "Custom command" in the profile preferences

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.