Skip to main content

Configuration files

The omni configuration files are expected to be in YAML format. They are searched for in the order they are listed below. Configuration options from later-applied files override configuration options from earlier-applied files.

Some configuration parameters will be ignored if present in the global configuration, others will be ignored if present in the per-work directory configuration. The parameters for which it is the case are clearly identified in the documentation.

Global configuration

System configuration (pre)

  • /etc/omni/pre.yaml
  • Any .yaml file in the /etc/omni/pre.d/ directory, in lexical order

User configuration

  • ~/.omni.yaml
  • ~/.config/omni.yaml (will conform to the XDG_CONFIG_HOME environment variable, if set)
  • ~/.config/omni/config.yaml
  • Any file which path is stored in the OMNI_CONFIG environment variable, if present and non-empty
note

If no configuration file is present when omni will need to edit one, the latest non-empty in the list will be used.

System configuration (post)

  • /etc/omni/post.yaml
  • Any .yaml file in the /etc/omni/post.d/ directory, in lexical order

Per-work directory configuration

From the root of the work directory:

  • .omni.yaml
  • .omni/config.yaml