diff --git a/install.sh b/install.sh index 1c44f85..175bf9d 100755 --- a/install.sh +++ b/install.sh @@ -25,6 +25,7 @@ SYMLINKS=( irbrc peco powconfig + pryrc reek rspec rubocop.yml diff --git a/pryrc b/pryrc new file mode 100644 index 0000000..64e8424 --- /dev/null +++ b/pryrc @@ -0,0 +1,11 @@ +if defined?(PryByebug) + Pry.commands.alias_command 'c', 'continue' + Pry.commands.alias_command 's', 'step' + Pry.commands.alias_command 'n', 'next' + Pry.commands.alias_command 'f', 'finish' + + # Hit Enter to repeat last command + Pry::Commands.command /^$/, 'repeat last command' do + _pry_.run_command Pry.history.to_a.last + end +end