How do you get the up arrow to give prior commands in irb on OSX?

When I try to use the up arrow I just get garbage characters...


Phil