-
-
Notifications
You must be signed in to change notification settings - Fork 320
/
hledger.conf.sample
80 lines (64 loc) · 3.09 KB
/
hledger.conf.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Here's a (verbose) hledger config file, providing extra options/arguments.
# You can try it with --conf CONFFILE, or save it as ~/.hledger.conf
# (or ~/.config/hledger/hledger.conf, or hledger.conf in/above current directory),
# and hledger will use it automatically.
# Note automatic config files are convenient, but it's easy to confuse yourself,
# disrupt reports, or break hledger-using scripts/applications.
# If a command is not working as expected, try it with -n to disable config files,
# or run it with --debug or --debug=8 to troubleshoot.
# https://hledger.org/dev/hledger.html#config-files
# 1. General options. These will be used with all commands which support them.
# https://hledger.org/dev/hledger.html#output
# If you need to turn off any of these, I'd like to hear details:
--pretty # Show prettier tables in reports ? Recommended on most systems.
#--color=no # Disable ANSI color and font styling in the terminal ?
#--pager=no # Disable paging of long output in the terminal ?
# Postpone balance assertions until you use -s or `hledger check assertions` ?
# It means less need to add -I while piping or fixing problems.
--ignore-assertions # https://hledger.org/hledger.html#balance-assertions
# Always infer these things ? Why not.
# https://hledger.org/hledger.html#--infer-market-prices-market-prices-from-transactions
# https://hledger.org/hledger.html#equity-conversion-postings
# https://hledger.org/hledger.html#inferring-equity-conversion-postings
--infer-market-prices
--infer-costs
#--infer-equity
#
# If you enable --infer-equity and use hledger check accounts or hledger check -s,
# you might need to add account declarations to your journal, something like:
# account equity:conversion:CUR1-CUR2:CUR1
# account equity:conversion:CUR1-CUR2:CUR2
# 2. Command-specific options.
# https://hledger.org/hledger.html#print
[print]
--explicit # show inferred amounts
--show-costs # show inferred costs
# https://hledger.org/hledger.html#help
[help]
#--man # if you prefer man over info
# Set some defaults for the balance commands ?
# You can override these by adding more options on the command line.
# [balance] --layout=bare --tree --depth 3
# [balancesheet] --layout=bare --tree --depth 3
# [balancesheetequity] --layout=bare --tree --depth 3
# [cashflow] --layout=bare --tree --depth 3
# [incomestatement] --layout=bare --tree --depth 3
# You can also set options for add-on commands here. This works only if
# you run them with hledger (`hledger ui ...`, not `hledger-ui ...`).
# Note they will also respect the general options above
# (hledger-ui and hledger-web will, at least).
# https://hledger.org/hledger-ui.html
# Start in the "Cash accounts" screen, with a depth limit,
# hiding zeros and equity accounts, and watch for file changes.
[ui] --cash -3 -E not:type:e --watch
# https://hledger.org/hledger-web.html
[web] --port 5050 --allow edit
# https://hledger.org/scripts.html#hledger-iadd
[iadd] --date-format %Y-%m-%d
# https://hledger.org/scripts.html#hledger-interest
#[interest]
# --annual 0.05
# --30-360
# --source SRCACCT
# --target DSTACCT
# ACCT