Is there any way to get recursive command history in Control + R style in pry

I recently played with pigs. A lot of great things, but I am without Control+R from irb. Pry has the command "hist" , but I still would like to press Control+R and start typing instead of doing hist --grep foo . Did I miss something?

+4
source share
1 answer

You need to edit the .editrc file in your home directory:

 nano ~/.editrc 

And add this line:

 bind "^R" em-inc-search-prev 

Source: pry wiki

+7
source

Source: https://habr.com/ru/post/1380802/


All Articles