Sha256: f5f19c8847d78a36a128a8bd31a01460bc358b661ff36d05e239a221b155d478
Contents?: true
Size: 530 Bytes
Versions: 4
Compression:
Stored size: 530 Bytes
Contents
require 'cliprompt' require 'configstruct' module Shellplay class Config < ConfigStruct include Cliprompt def set_defaults default :basedir, File.join(ENV['HOME'], '.shellplay') super end def setup values = {} output.puts Paint['Create a new shellplay configuration:', :blue] values['editor'] = guess 'EDITOR', 'What is the path to launch your text editor?', 'vim' values['prompt'] = ask 'What is the default prompt you want to use?' write values end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shellplay-0.0.5 | lib/shellplay/config.rb |
shellplay-0.0.4 | lib/shellplay/config.rb |
shellplay-0.0.3 | lib/shellplay/config.rb |
shellplay-0.0.2 | lib/shellplay/config.rb |