summaryrefslogtreecommitdiff
path: root/doc/ledger3.texi
diff options
context:
space:
mode:
authorCédric Barreteau <unknown>2020-08-22 15:38:41 +0200
committerJohn Wiegley <johnw@newartisans.com>2020-08-28 11:05:34 -0700
commitc79674649dee7577d6061e3d0776922257520fd0 (patch)
tree305e466debaeb36e3ea49a37e952498602eb88e4 /doc/ledger3.texi
parent718ba0e3139d365ffb7883cb2c937cfe23656506 (diff)
downloadfork-ledger-c79674649dee7577d6061e3d0776922257520fd0.tar.gz
fork-ledger-c79674649dee7577d6061e3d0776922257520fd0.tar.bz2
fork-ledger-c79674649dee7577d6061e3d0776922257520fd0.zip
Add support for `$XDG_CONFIG_HOME`
`$XDG_CONFIG_HOME/ledger/ledgerrc` and `$HOME/.config/ledger/ledgerrc` are tried first when looking for an init file.
Diffstat (limited to 'doc/ledger3.texi')
-rw-r--r--doc/ledger3.texi13
1 files changed, 6 insertions, 7 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi
index ce31f9aa..55dcf57e 100644
--- a/doc/ledger3.texi
+++ b/doc/ledger3.texi
@@ -5978,9 +5978,9 @@ the run.
Display the man page for @file{ledger}.
@item --init-file @var{FILE}
-Specify the location of the init file. The default is home directory
-@file{~/.ledgerrc}, or current directory @file{./.ledgerrc} if not found
-in home directory.
+Specify the location of the init file. By default, @file{$XDG_CONFIG_HOME},
+@file{~/.config/ledger/lederrc}, @file{~/.ledgerrc} and @file{./.ledgerrc} are
+tried in order.
@item --options
Display the options in effect for this Ledger invocation, along with
@@ -6882,12 +6882,12 @@ report.
@item --unrealized-gains @var{STR}
Allow the user to specify what account name should be used for
unrealized gains. Defaults to @samp{"Equity:Unrealized Gains"}.
-Often set in one's @file{~/.ledgerrc} file to change the default.
+Often set in one's init file to change the default.
@item --unrealized-losses @var{STR}
Allow the user to specify what account name should be used for
unrealized losses. Defaults to @samp{"Equity:Unrealized Losses"}.
-Often set in one's @file{~/.ledgerrc} file to change the default.
+Often set in one's init file to change the default.
@item --unround
Perform all calculations without rounding and display results to full
@@ -7275,8 +7275,7 @@ Change the basic date format used by reports. The default uses a date
like @samp{2004/08/01}, which represents the default date format of
@code{%Y/%m/%d}. To change the way dates are printed in general, the
easiest way is to put @option{--date-format @var{DATE_FORMAT}} in the
-Ledger initialization file @file{~/.ledgerrc} (or the file referred to
-by @env{LEDGER_INIT}).
+Ledger init file (or the file referred to by @env{LEDGER_INIT}).
@item --format @var{FORMAT_STRING}
@itemx -F @var{FORMAT_STRING}