IRB & iTerm

If you’re like me, you use irb for all kinds of things. From just running quick ruby experiments to figuring out how many days (9364) you’ve been alive.

I created a bookmark in iTerm to run irb when I hit -control-0. This was fine until I realized it was using the system’s ruby install, and not the version I installed with RVM.

I eventually realized the problem was the system environment doesn’t know about my .bash_profile, and therefore my modified PATH variable nor the require RVM magic.

So, to get all that, this is the command to use to make sure you’re getting the same irb you expect from your commandline:

bash --login -c irb


Yay it works!
⦂∀

Tags// , , , , ,