rbenv irb history is not saving

前端 未结 2 1003
滥情空心
滥情空心 2020-12-14 18:57

I install ruby via rbenv-installer.

When I use irb console, I can use history by pressing up and down on keyboard. And when I exited from console and start it again

2条回答
  •  难免孤独
    2020-12-14 19:33

    Create ~/.irbrc if it does not exist, and add the following line to it:

    IRB.conf[:SAVE_HISTORY] = 1000
    

提交回复
热议问题