pry/pry — Issue #436: create a way to load plugin configurations before ~/.pryrc
Author: envygeeks
Created: 2012-01-18 20:55:45+00:00
State: open

It seems that when trying to organize plugin configurations you either need to be sloppy (exp doing something like Pry.config.my_plugin_option1, Pry.config.my_plugin_option2) or nothing. If Pry loaded a ~/.pryrc from the gem root or some other place that would allow us to do something like Pry.config.my_plugin = OpenStruct.new then configurations for plugins could be organised easier. Or even better, what if pry just went ahead and assumed for the plugin what it's options hook is going to be, exp: pry-nav would be required to use Pry.config.pry_nav since Pry would automatically create a struct with that name based on the plugin name.