Skip to content

Commit

Permalink
Add one-letter shortcut commands for pry
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Mar 22, 2023
1 parent f3a0fda commit c55efe6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/home/rails/.pryrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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'
end
# Hit Enter to repeat last command
Pry::Commands.command /^$/, "repeat last command" do
_pry_.run_command Pry.history.to_a.last
end

0 comments on commit c55efe6

Please sign in to comment.