Skip to content

Instantly share code, notes, and snippets.

@henrytseng
Created October 5, 2019 03:24
Show Gist options
  • Save henrytseng/10f3b77be069a05067c224737d1caa1d to your computer and use it in GitHub Desktop.
Save henrytseng/10f3b77be069a05067c224737d1caa1d to your computer and use it in GitHub Desktop.
Ruby Pry configuration file
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