Support JRNLRC environment variable to specify configuration file

This allows switching configurations using e.g. direnv.
This commit is contained in:
Andreas Brenk 2019-05-13 20:09:10 +02:00
parent 81dfebb2c0
commit e6a819bda9
2 changed files with 5 additions and 1 deletions

View file

@ -8,6 +8,8 @@ Configuration File
You can configure the way jrnl behaves in a configuration file. By default, this is ``~/.jrnl_config``. If you have the ``XDG_CONFIG_HOME`` variable set, the configuration file will be saved under ``$XDG_CONFIG_HOME/jrnl``.
The default path can be overridden with the ``JRNLRC`` environment variable. This can be useful if you want to keep project specific configurations and automatically switch to them using e.g. ``direnv``.
.. note::
On Windows, The configuration file is typically found at ``C:\Users\[Your Username]\.jrnl_config``.