Skip to content

hledger directives

Hledger allows you to specify some useful directives which affect things such as number formatting.

A convenient place to put these directives within hledger-flow is a file named directives.journal (in your hledger-flow base directory).

If it exists hledger-flow will include it within the all-years.journal:

Terminal window
cat all-years.journal
### Generated by hledger-flow - DO NOT EDIT ###
include directives.journal
include import/all-years.journal

The report command also loads this file for each owner’s reports, so account types and commodity formatting apply even when reporting on one owner alone.