From c79674649dee7577d6061e3d0776922257520fd0 Mon Sep 17 00:00:00 2001 From: Cédric Barreteau Date: Sat, 22 Aug 2020 15:38:41 +0200 Subject: 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. --- doc/ledger.1 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'doc/ledger.1') diff --git a/doc/ledger.1 b/doc/ledger.1 index 032cff02..f1fad3f6 100644 --- a/doc/ledger.1 +++ b/doc/ledger.1 @@ -965,16 +965,12 @@ report. Allow the user to specify what account name should be used for unrealized gains. Defaults to .Sy "Equity:Unrealized Gains" . -Often set in one's -.Pa ~/.ledgerrc -file to change the default. +Often set in one's init file to change the default. .It Fl \-unrealized-losses Allow the user to specify what account name should be used for unrealized losses. Defaults to .Sy "Equity:Unrealized Losses" . -Often set in one's -.Pa ~/.ledgerrc -file to change the default. +Often set in one's init file to change the default. .It Fl \-unround Perform all calculations without rounding and display results to full precision. @@ -1445,6 +1441,8 @@ on the command-line. Options on the command-line always take precedence over environment variable settings, however. .Sh FILES .Bl -tag -width -indent +.It Pa $XDG_CONFIG_HOME/ledger/ledgerrc +.It Pa ~/.config/local/ledgerrc .It Pa ~/.ledgerrc Your personal .Nm -- cgit v1.2.3