Created
June 26, 2017 08:32
-
-
Save begin29/5d0ed5cc4680b424fa773bdb4b111444 to your computer and use it in GitHub Desktop.
custom pryrc with scratch 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
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