diff options
author | gxlin <[email protected]> | 2021-03-14 11:40:31 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-03-14 11:40:31 +0800 |
commit | 4d3b20b9445c1bcdd015e2babc03da91651898ed (patch) | |
tree | 20ab5ae3ae2d166607ec2dec8fd99ae22fe21533 /bin | |
parent | 785045abe5fefb87d251e4feab1d6a8da4a5f2af (diff) | |
download | dotfiles-4d3b20b9445c1bcdd015e2babc03da91651898ed.tar.gz dotfiles-4d3b20b9445c1bcdd015e2babc03da91651898ed.tar.bz2 dotfiles-4d3b20b9445c1bcdd015e2babc03da91651898ed.zip |
Change Income name of ledger
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ledger | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |