Skip to content

Instantly share code, notes, and snippets.

@flarik
Created June 12, 2013 10:25
Show Gist options
  • Save flarik/5764244 to your computer and use it in GitHub Desktop.
Save flarik/5764244 to your computer and use it in GitHub Desktop.
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
@pas256
Copy link

pas256 commented Jul 10, 2013

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

@patrickreiner
Copy link

Thank you for this!

@reicheltd
Copy link

thx mate! works fine

@mrkskwsnck
Copy link

I like it!

@jmuheim
Copy link

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
Copy link

elia commented Aug 11, 2014

I found this to work fine on my projects

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

@jonole
Copy link

jonole commented Oct 24, 2014

Thanks!

@jamesarobbo
Copy link

Thanks Elia!

@thomasdarde
Copy link

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