Skip to content

Commit

Permalink
include docs on --show-default-configfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Apr 7, 2015
1 parent a1a7469 commit d2d8fd6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Changelog for EasyBuild documentation
(see :ref:`install_running_unit_tests`)
* clarify relation between ``--installpath``, ``--prefix``, ``-subdir-*`` and ``--installpath-*``
configuration options (see :ref:`installpath`)
* mention ``--show-default-configfiles`` command line option in relevant section
(see :ref:`default_configuration_files`)

* **release 20150327.01** (`Mar 27th 2015`):

Expand Down
15 changes: 15 additions & 0 deletions docs/Configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,21 @@ configuration files at ``/etc/easybuild.d/*.cfg`` and ``$HOME/.config/easybuild/
The configuration file located in ``$XDG_CONFIG_HOME`` will be listed *after* the ones obtained via ``$XDG_CONFIG_DIRS``,
such that user-defined configuration settings have preference over system defaults.

A detailed overview of the list of default configuration files is available via ``eb --show-default-configfiles``
(available since EasyBuild v2.1.0). For example::

$ XDG_CONFIG_DIRS=/tmp/etc:/tmp/moreetc eb --show-default-configfiles
Default list of configuration files:

[with $XDG_CONFIG_HOME: (not set), $XDG_CONFIG_DIRS: /tmp/etc:/tmp/moreetc]

* user-level: ${XDG_CONFIG_HOME:-$HOME/.config}/easybuild/config.cfg
-> /home/example/.config/easybuild/config.cfg => found
* system-level: ${XDG_CONFIG_DIRS:-/etc}/easybuild.d/*.cfg
-> {/tmp/etc, /tmp/moreetc}/easybuild.d/*.cfg => /tmp/etc/easybuild.d/config.cfg, /tmp/moreetc/easybuild.d/bar.cfg, /tmp/moreetc/easybuild.d/foo.cfg

Default list of existing configuration files (4): /tmp/etc/easybuild.d/config.cfg, /tmp/moreetc/easybuild.d/bar.cfg, /tmp/moreetc/easybuild.d/foo.cfg, /home/example/.config/easybuild/config.cfg

Multiple configuration files
++++++++++++++++++++++++++++

Expand Down

0 comments on commit d2d8fd6

Please sign in to comment.