Add .pryrc dotfile

This commit is contained in:
2018-06-06 17:15:34 +01:00
parent 367343a4d0
commit ad72d7394f
2 changed files with 12 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ SYMLINKS=(
irbrc irbrc
peco peco
powconfig powconfig
pryrc
reek reek
rspec rspec
rubocop.yml rubocop.yml

11
pryrc Normal file
View File

@@ -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