diff options
Diffstat (limited to 'bin/osugiru')
-rwxr-xr-x | bin/osugiru | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/osugiru b/bin/osugiru new file mode 100755 index 0000000..0ed7510 --- /dev/null +++ b/bin/osugiru @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby + +require_relative "../lib/osugiru.rb" + +CONFIG_FILEPATH = 'osugiru/config.rb' +XDG_HOME = ENV.fetch('XDG_CONFIG_HOME', "#{Dir.home}/.config") +def start_osugiru + config_file = File.read("#{XDG_HOME}/#{CONFIG_FILEPATH}") + instance_eval(config_file) + eval_rules +end + +start_osugiru |