diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-09-28 21:29:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 21:29:42 +0200 |
commit | 49291f3758ca27c69d9ae0bb162079ef6f86b5da (patch) | |
tree | 48beef5447036a5303934599946548f9152af395 | |
parent | 99a874cc8af70db58da0f3e5e00c318488c6c3ea (diff) | |
parent | 119d76d80e009ce559a5daa2e7214789fcac2879 (diff) | |
download | Nim-49291f3758ca27c69d9ae0bb162079ef6f86b5da.tar.gz |
Merge pull request #9106 from demotomohiro/fixcompilerman
Nim Compiler User Guide: Fix how user config file is searched
-rw-r--r-- | doc/nimc.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/nimc.rst b/doc/nimc.rst index 4082b5378..9fa181f48 100644 --- a/doc/nimc.rst +++ b/doc/nimc.rst @@ -158,7 +158,7 @@ The ``nim`` executable processes configuration files in the following directories (in this order; later files overwrite previous settings): 1) ``$nim/config/nim.cfg``, ``/etc/nim/nim.cfg`` (UNIX) or ``%NIM%/config/nim.cfg`` (Windows). This file can be skipped with the ``--skipCfg`` command line option. -2) ``$HOME/.config/nim.cfg`` (POSIX) or ``%APPDATA%/nim.cfg`` (Windows). This file can be skipped with the ``--skipUserCfg`` command line option. +2) If environment variable ``XDG_CONFIG_HOME`` is defined, ``$XDG_CONFIG_HOME/nim/nim.cfg`` or ``~/.config/nim/nim.cfg`` (POSIX) or ``%APPDATA%/nim/nim.cfg`` (Windows). This file can be skipped with the ``--skipUserCfg`` command line option. 3) ``$parentDir/nim.cfg`` where ``$parentDir`` stands for any parent directory of the project file's path. These files can be skipped with the ``--skipParentCfg`` command line option. 4) ``$projectDir/nim.cfg`` where ``$projectDir`` stands for the project file's path. This file can be skipped with the ``--skipProjCfg`` command line option. 5) A project can also have a project specific configuration file named ``$project.nim.cfg`` that resides in the same directory as ``$project.nim``. This file can be skipped with the ``--skipProjCfg`` command line option. |