Keep pry history separate from rails console history
Author: krukgitCreated Jul 16, 2014Updated Mar 25, 2024
Labelsbug
I'm using pry in my Rails 4.1 projects and every time I enter pry when within the console, it loads pry history on top of the console history, so even if I quit pry straightaway, my history is overwritten with the commands I run hours before in a different pry session. Is there a way to change this behaviour without disabling pry history?
Example:
2.1.1 :002 > puts 'test'
test
=> nil
2.1.1 :003 > MyClass.last.my_method
...
[1] pry(#<MyClass>)> quit
2.1.1 :004 > <now history is all messed up>Source: pry/pry