Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pow's .porwrc config file for use with RVM's config files .rvmrc or .ruby-version (+ optional .ruby-gemset)
if [ -f "${rvm_path}/scripts/rvm" ]; then
source "${rvm_path}/scripts/rvm"
if [ -f ".rvmrc" ]; then
source ".rvmrc"
elif [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then
rvm use `cat .ruby-version`@`cat .ruby-gemset`
elif [ -f ".ruby-version" ]; then
rvm use `cat .ruby-version`
fi
fi
@tvdeyen

This comment has been minimized.

Copy link

@tvdeyen tvdeyen commented Jul 2, 2013

works great <3

@pas256

This comment has been minimized.

Copy link

@pas256 pas256 commented Jul 10, 2013

Yep, this is better than the other gist that did use twice. Thanks!

@patrickreiner

This comment has been minimized.

Copy link

@patrickreiner patrickreiner commented Aug 2, 2013

Thank you for this!

@reicheltd

This comment has been minimized.

Copy link

@reicheltd reicheltd commented Oct 28, 2013

thx mate! works fine

@mrkskwsnck

This comment has been minimized.

Copy link

@mrkskwsnck mrkskwsnck commented Nov 8, 2013

I like it!

@jmuheim

This comment has been minimized.

Copy link

@jmuheim jmuheim commented Dec 15, 2013

Thanks a lot! But it's a pitty that this is needed. I was nearly kicking POW again right after I tried it because it was looking in the wrong Ruby/Gemset combo. This fixed it, nice!

@elia

This comment has been minimized.

Copy link

@elia elia commented Aug 11, 2014

I found this to work fine on my projects

source "${rvm_path}/scripts/rvm"
cd .
@jonole

This comment has been minimized.

Copy link

@jonole jonole commented Oct 24, 2014

Thanks!

@jamesarobbo

This comment has been minimized.

Copy link

@jamesarobbo jamesarobbo commented Oct 25, 2014

Thanks Elia!

@thomasdarde

This comment has been minimized.

Copy link

@thomasdarde thomasdarde commented Oct 9, 2015

Anyone has it to work with fish shell ?
(I have something but must une only one ruby ...)

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