Closed vrillusions closed 5 years ago
Updated the section in README. Couldn't think of a good way to update the usage output to mention the environment variable. In a lot of other projects it seems like environment variables is an advanced option and usually just mentioned in README or other online documentation.
Thanks!
Will now check the following places for a config file and will try the first one in list:
--config
SNCLI
environment variable if set~/.snclirc
I try to make use of the
~/.config
directory for storing config files. This was the smallest change I could figure out to achieve this. This lets me setexport SNCLI="${HOME}/.config/sncli/snclirc"
where I can then specify directories for any other config item (ex changing the path of the db directory)Some basic testing to verify logic: