Last Updated: February 25, 2016
·
805
· jonathannelson

How To Fix POW Not Using Correct Gemset

Create New Hook

Place this file in ~/.rvm/hooks/afteruseupdate_powrc

for file in `ls ~/.pow/` ; do
  POW_LINK_TARGET=`readlink ~/.pow/$file`

  if [ `pwd` = $POW_LINK_TARGET ]; then
    rvm env -- ``rvm current`` > .powenv
  fi
done

Update Permissions

chmod +x ~/.rvm/hooks/after_use_update_powrc