Get pry to open file in RubyMine

Add this line of code to your ~/.pryrc:

Pry.config.editor = proc { |file, line| "rubymine --line #{line} #{file}" }

And :boom:

You can type edit -c in a Pry session and open up the current line in RubyMine!