Created
June 6, 2018 15:46
-
-
Save ch1c0t/c8ed2a2a6e4bda79b2e182a1d10e626e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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