I am using OSX. I am using terminal and I use irb. After typing
something I need to do p at the front. Now I need to go back to the
beginning of the line and I hit left arrow key and it takes forever.

I have seen people jump straight to the beginning of the line. What's
the shortcut command and where can I get the list?