Skip to content

Instantly share code, notes, and snippets.

@jheth
Created June 20, 2016 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jheth/0f92ac04eeb02719f555b4a6438eed59 to your computer and use it in GitHub Desktop.
Save jheth/0f92ac04eeb02719f555b4a6438eed59 to your computer and use it in GitHub Desktop.
# Turn off the automatic pager
Pry.config.pager = false
# Make the prompt silly.
Pry.config.prompt_name = 'oh no!'
# Hit Enter to repeat last command
#Pry::Commands.command(/^$/, 'repeat last command') do
# _pry_.run_command Pry.history.to_a.last
#end
# Single letter and pdb like aliases
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 'return', 'finish'
Pry.commands.alias_command 'r', 'finish'
Pry.commands.alias_command 'f', 'finish'
Pry.commands.alias_command 'q', 'exit-program'
Pry.commands.alias_command 'quit', 'exit-program'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment