Skip to content

Conversation

@deasmi
Copy link

@deasmi deasmi commented Feb 3, 2014

I found this useful to select the default ruby once installed.

Happy for this to be included under the same license.

@DracoBlue
Copy link

+1

@DracoBlue
Copy link

I had to change it to:

exec { "su -l ${user} -c 'bash --login -c \"${command}\"'":

to make rvm current working. It failed since otherwise with:

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants