summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-03-27 00:45:43 -0700
committerAndreas Rumpf <rumpf_a@web.de>2018-03-27 09:45:43 +0200
commit50229293ae5898acc2c30f9cb87b59e2fa0b236a (patch)
treec599ecd488e70480a5a046f247d8a88bb54448e2
parent23064bba3a711d3f6bddfb8568c0d1732acdffb2 (diff)
downloadNim-50229293ae5898acc2c30f9cb87b59e2fa0b236a.tar.gz
doc: fix path to $HOME/.config/nim.cfg to work on POSIX (not just unix but also osx) (#7421)
-rw-r--r--doc/nimc.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/nimc.rst b/doc/nimc.rst
index e949df69c..151510df2 100644
--- a/doc/nimc.rst
+++ b/doc/nimc.rst
@@ -115,7 +115,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.cfg`` (UNIX) or ``%NIMROD%/config/nim.cfg`` (Windows). This file can be skipped with the ``--skipCfg`` command line option.
-2) ``/home/$user/.config/nim.cfg`` (UNIX) or  ``%APPDATA%/nim.cfg`` (Windows). This file can be skipped with the ``--skipUserCfg`` 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.
 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.