lib/shellplay/config.rb in shellplay-0.0.7 vs lib/shellplay/config.rb in shellplay-0.0.8

- old
+ new

@@ -4,9 +4,15 @@ module Shellplay class Config < ConfigStruct include Cliprompt + def initialize(options = nil, input = STDIN, output = STDOUT) + confdir = File.join(ENV['HOME'], '.shellplay') + FileUtils.mkdir_p confdir unless Dir.exist? confdir + super(options = nil, input = STDIN, output = STDOUT) + end + def set_defaults default :basedir, File.join(ENV['HOME'], '.shellplay') super end