todofi.sh icon indicating copy to clipboard operation
todofi.sh copied to clipboard

fix: make header color configurable

Open jderuiter opened this issue 2 years ago • 2 comments

The header template (TODOFISH_HEADER) was parsed before the config file was sourced, so the default color was always used.

jderuiter avatar Mar 11 '22 10:03 jderuiter

If you want to override the config like TODOFISH_HEADER, you need to use the -c argument and the config file will be loaded after.

hugokernel avatar Mar 11 '22 11:03 hugokernel

Actually I didn't want to override TODOFISH_HEADER, but I wanted it to respect the COLOR_TITLE that I set in my config. It kept being bright green, despite setting COLOR_TITLE to something else. If TODOFISH_HEADER should also be configurable I will need to add an additional check to see whether it was overridden in by the config file.

jderuiter avatar Mar 11 '22 12:03 jderuiter