The one thing that drives me crazy about Ruby shell is the pain of copy-pasting the code.
Let’s say you run pry
in iTerm2 and try to mess around some class code.
And suddenly you realize that you meant to return “foo” from foo
method. Unfortunately, you can’t just move the pointer after “bar”, select three lines, copy and paste, as the prompt text will get into the selection too.
So here’s a quick and dirty solution.
Then you should have a REPL with no prompt at all. Just a lonely coursor floating in a dark space of your terminal.
But as creepy as it feels, at least you now can select-copy-paste as much as you want!
As a bonus, you can type simple-prompt
again and return to the regular mode.