Skip to content

Commit

Permalink
imp: config file: sample: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Jun 25, 2024
1 parent b8706de commit 26978ff
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions hledger.conf.sample
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#!/usr/bin/env -S hledger --conf
# hledger.conf - extra options(/arguments) to be added to hledger commands.
# This can be placed in current dir or above, or ~/.hledger.conf, or ~/.config/hledger/,
# or specified with --conf, or executed with a shebang line like the above.

# hledger looks for a hledger.conf file in the current directory or above,
# or in your home directory with a dotted name: $HOME/.hledger.conf,
# or in your XDG config directory: $HOME/.config/hledger/hledger.conf.
# You can also execute a conf file with a shebang line like the one above.

# 1. This first, unnamed section is typically used for general options.
# These affect all commands, or when not supported will be ignored.
# To see the general options available, run hledger -h
# Options/arguments for all commands (which support them):

# don't check balance assertions by default (run with -s to check them)
--ignore-assertions
Expand All @@ -22,15 +17,13 @@
--pretty


# 2. [named] sections define extra command-specific options.
# Options can be written on the same line or separate lines.
# To see a command's options, run hledger CMD -h
# Options/arguments for specific commands:

# help: prefer man pages, bypassing info
# [help] --man
[print]
--explicit # show missing amounts
--show-costs # show costs

# print: show more info by default
[print] --explicit --show-costs
# [help] --man # prefer man over info

# balance commands: use these defaults
[balance] --tree -p 'monthly from 3 months ago' --depth 3
Expand Down

0 comments on commit 26978ff

Please sign in to comment.