aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-03-14 11:40:31 +0800
committergxlin <[email protected]>2021-03-14 11:40:31 +0800
commit4d3b20b9445c1bcdd015e2babc03da91651898ed (patch)
tree20ab5ae3ae2d166607ec2dec8fd99ae22fe21533 /bin
parent785045abe5fefb87d251e4feab1d6a8da4a5f2af (diff)
downloaddotfiles-4d3b20b9445c1bcdd015e2babc03da91651898ed.tar.gz
dotfiles-4d3b20b9445c1bcdd015e2babc03da91651898ed.tar.bz2
dotfiles-4d3b20b9445c1bcdd015e2babc03da91651898ed.zip
Change Income name of ledger
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ledger5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ledger b/bin/ledger
index c3aa3b5..5b33fd9 100755
--- a/bin/ledger
+++ b/bin/ledger
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
+[ -f /usr/bin/ledger ] && prog=/usr/bin/ledger
[ -f /usr/local/bin/ledger ] && prog=/usr/local/bin/ledger
subcommand=$1
@@ -13,8 +14,8 @@ case $subcommand in
$prog --no-pager reg ^Assets ^Liabilities --daily --collapse $extra_options
;;
is) # Income Statement
- $prog --current --aux-date --no-pager reg ^Expenses ^Revenues --daily --collapse $extra_options
- $prog --current --aux-date --no-pager bal ^Expenses ^Revenues --collapse $extra_options
+ $prog --current --aux-date --no-pager reg ^Expenses ^Income --daily --collapse $extra_options
+ $prog --current --aux-date --no-pager bal ^Expenses ^Income --collapse $extra_options
;;
exp) # Expense Compare
$prog --current --aux-date --no-pager bal ^Expenses --depth 1 --sort amount -X USD $extra_options