2024-07-17 08:34:31 +03:00
|
|
|
# An example hledger config file, for you to customise.
|
|
|
|
# This declares extra options/arguments to be added to your hledger commands.
|
|
|
|
# Save as ~/.hledger.conf, or ~/.config/hledger/hledger.conf, or hledger.conf
|
|
|
|
# in or above your current directory, and hledger will use it automatically.
|
|
|
|
#
|
2024-07-17 09:39:11 +03:00
|
|
|
# If you use a config file, be careful about what you put in it.
|
2024-07-17 08:34:31 +03:00
|
|
|
# It changes hledger's behaviour, so it's easy to confuse yourself,
|
|
|
|
# disrupt reports, or break scripts/applications which use hledger.
|
2024-07-17 10:42:37 +03:00
|
|
|
# If a command is not working as expected, run with --debug to troubleshoot.
|
|
|
|
# To avoid using any config file, you can run hledger with -n/--no-conf.
|
2024-07-17 08:34:31 +03:00
|
|
|
#
|
2024-07-17 17:09:54 +03:00
|
|
|
# You can also: choose a config file with --conf, or add a shebang line (eg
|
2024-07-17 08:34:31 +03:00
|
|
|
# #!/usr/bin/env -S hledger --conf) to config files and run them like scripts.
|
2024-06-24 23:50:28 +03:00
|
|
|
|
2024-06-13 21:11:06 +03:00
|
|
|
|
2024-07-17 08:34:31 +03:00
|
|
|
# 1. General options. These will be used with all commands which support them.
|
|
|
|
|
2024-07-17 17:09:54 +03:00
|
|
|
# Show prettier tables in reports.
|
|
|
|
# Recommended unless your font doesn't support box drawing characters.
|
2024-07-17 08:34:31 +03:00
|
|
|
--pretty
|
|
|
|
|
2024-07-17 17:09:54 +03:00
|
|
|
# Postpone balance assertions until you use -s or `hledger check assertions`.
|
|
|
|
# Less need to write -I while fixing issues.
|
2024-06-18 11:39:02 +03:00
|
|
|
--ignore-assertions
|
|
|
|
|
2024-07-17 08:39:29 +03:00
|
|
|
# Always infer these things ? Why not.
|
2024-06-18 11:39:02 +03:00
|
|
|
--infer-costs
|
|
|
|
--infer-equity
|
|
|
|
--infer-market-prices
|
|
|
|
|
|
|
|
|
2024-07-17 08:34:31 +03:00
|
|
|
# 2. Command-specific options.
|
2024-06-18 11:39:02 +03:00
|
|
|
|
2024-06-25 12:14:05 +03:00
|
|
|
[print]
|
|
|
|
--explicit # show missing amounts
|
|
|
|
--show-costs # show costs
|
2024-06-18 11:39:02 +03:00
|
|
|
|
2024-07-17 08:34:31 +03:00
|
|
|
[help]
|
|
|
|
--man # if you prefer man over info
|
|
|
|
|
|
|
|
# Set your preferred options for the balance commands.
|
2024-07-17 08:49:14 +03:00
|
|
|
# You can override these by adding more options on the command line.
|
2024-07-17 08:34:31 +03:00
|
|
|
[balance] --tree --depth 3 -b '3 months ago'
|
|
|
|
[balancesheet] --tree --depth 3 -b '3 months ago'
|
|
|
|
[balancesheetequity] --tree --depth 3 -b '3 months ago'
|
|
|
|
[cashflow] --tree --depth 3 -b '3 months ago'
|
|
|
|
[incomestatement] --tree --depth 3 -b '3 months ago'
|
|
|
|
|
|
|
|
# You can set options/arguments for addon commands too (when started by
|
|
|
|
# `hledger CMD`). The -- argument needed at command line is not needed here.
|
|
|
|
|
|
|
|
# Some defaults for hledger-ui: start in the Cash accounts screen,
|
|
|
|
# watch for file changes, set a depth limit, hide zeros and equity accounts.
|
|
|
|
[ui] --cash --watch -3 -E not:type:e
|
|
|
|
|
|
|
|
[web] --port 5050 --allow edit
|
2024-06-13 21:11:06 +03:00
|
|
|
|
2024-07-17 08:34:31 +03:00
|
|
|
[iadd] --date-format %Y-%m-%d
|
2024-06-13 21:11:06 +03:00
|
|
|
|
2024-07-17 08:34:31 +03:00
|
|
|
#[interest]
|
|
|
|
# --annual 0.05
|
|
|
|
# --30-360
|
|
|
|
# --source SRCACCT
|
|
|
|
# --target DSTACCT
|
|
|
|
# ACCT
|