Method: Shellplay::Config#setup
- Defined in:
- lib/shellplay/config.rb
#setup ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/shellplay/config.rb', line 20 def setup unless self.prompt && self.timeformat 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?', "\e[36m #{ENV['USER']} > \e[0m" values['timeformat'] = ask 'What is the time format you want to display?', '%.1f' write values end end |