From b9b0417e410e225a8c50e920a8049a6e8da9e8b6 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 2 Jun 2015 14:12:54 -0700 Subject: [PATCH] doc: manual: more width-setting examples --- doc/manual.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/manual.md b/doc/manual.md index 9f88ddb31..e1230aa67 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -1818,10 +1818,12 @@ DDDDDDDDDD dddddddddddddddddddd aaaaaaaaaaaaaaaaaaa AAAAAAAAAAAA AAAAAAAAAAAA ``` and some examples: ```{.shell .bold} -$ hledger reg # use terminal width on posix -$ hledger reg -w 100 # width 100, equal description/account widths -$ hledger reg -w 100,40 # width 100, wider description -$ hledger reg -w $COLUMNS,100 # terminal width, and set description width +$ hledger reg # use terminal width (or 80 on windows) +$ hledger reg -w 100 # use width 100 +$ COLUMNS=100 hledger reg # set with one-time environment variable +$ export COLUMNS=100; hledger reg # set till session end (or window resize) +$ hledger reg -w 100,40 # set overall width 100, description width 40 +$ hledger reg -w $COLUMNS,40 # use terminal width, and set description width ``` The register command also supports the