Skip to content

Instantly share code, notes, and snippets.

@begin29
Created June 26, 2017 08:32
Show Gist options
  • Save begin29/5d0ed5cc4680b424fa773bdb4b111444 to your computer and use it in GitHub Desktop.
Save begin29/5d0ed5cc4680b424fa773bdb4b111444 to your computer and use it in GitHub Desktop.
custom pryrc with scratch file
load 'scratch.rb'
include Scratch
default_command_set = Pry::CommandSet.new do
command "scratch!", "reload scratch" do |str|
load 'scratch.rb'
end
end
Pry.config.commands.import default_command_set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment