Respect the XDG standard for configuration files
commit1e6da9d830c7faf1f92a5bb651b77c45d8045d2e
authorJonas Fonseca <jonas.fonseca@gmail.com>
Thu, 4 Aug 2016 03:26:48 +0000 (3 23:26 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Thu, 4 Aug 2016 03:28:01 +0000 (3 23:28 -0400)
treec91071e8e34b079905c239eb6b9891f9cad64d70
parent8fe27d51bbf9a053d7e8b2df96044719f0e59a09
Respect the XDG standard for configuration files

From GH #513:

    Rather than reading the user configuration from `~/.tigrc` by
    default, instead check `$XDG_CONFIG_HOME/tig/config` and only then
    look for `~/.tigrc`. Further reading:
    https://ploum.net/207-modify-your-application-to-use-xdg-folders/

Fixes #513
NEWS.adoc
src/options.c
test/tigrc/xdg-config-home-test [new file with mode: 0755]