Created
October 5, 2019 03:24
-
-
Save henrytseng/10f3b77be069a05067c224737d1caa1d to your computer and use it in GitHub Desktop.
Ruby Pry configuration file
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
Pry.config.pager = false | |
Pry.config.history.file = "~/.pry_history" | |
if defined?(PryByebug) | |
Pry.commands.alias_command 'cc', 'continue' | |
Pry.commands.alias_command 'ss', 'step' | |
Pry.commands.alias_command 'nn', 'next' | |
Pry.commands.alias_command 'ff', 'finish' | |
Pry.commands.alias_command 'bb', 'break' | |
Pry.commands.alias_command 'uu', 'up' | |
Pry.commands.alias_command 'dd', 'down' | |
Pry.commands.alias_command 'bt', 'backtrace' | |
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