diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chotto | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -7,6 +7,10 @@ require_relative '../lib/chotto' CONFIG_FILEPATH = 'chotto/config.rb' XDG_HOME = ENV.fetch('XDG_CONFIG_HOME', "#{Dir.home}/.config") def start_chotto(options) + Chotto.configure do + config.only_new = options.fetch(:only_new, false) + end + config_file = File.read("#{XDG_HOME}/#{CONFIG_FILEPATH}") instance_eval(config_file) eval_rules(options) |