From ad72d7394fb9f2fffaed0cde50c60946f89c1b63 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 6 Jun 2018 17:15:34 +0100 Subject: [PATCH] Add .pryrc dotfile --- install.sh | 1 + pryrc | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 pryrc 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