Skip to content

Instantly share code, notes, and snippets.

@ch1c0t
Created June 6, 2018 15:46
Show Gist options
  • Save ch1c0t/c8ed2a2a6e4bda79b2e182a1d10e626e to your computer and use it in GitHub Desktop.
Save ch1c0t/c8ed2a2a6e4bda79b2e182a1d10e626e to your computer and use it in GitHub Desktop.
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
begin
require 'awesome_print'
AwesomePrint.defaults = { raw: true }
AwesomePrint.pry!
rescue LoadError
nil
end
# Hit Enter to repeat last command
Pry::Commands.command /^$/, "repeat last command" do
_pry_.run_command Pry.history.to_a.last
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment