feat: bin: watchaccounts

This commit is contained in:
Simon Michael 2022-10-27 11:24:45 -10:00
parent d5fa141176
commit a6cc98521d
2 changed files with 19 additions and 0 deletions

View File

@ -50,6 +50,16 @@ $ . bin/bashrc
$ fin # list the scripts available
```
### watchaccounts
[`watchaccounts`](https://github.com/simonmichael/hledger/blob/master/bin/watchaccounts)
shows hledger account names, updating on file change under the current directory.
Arguments are passed to the `hledger accounts` command. Useful when cleaning up accounts.
```cli
$ watchaccounts expenses -2
$ watchaccounts -f time.journal client1 date:thismonth -l
```
### hledger-simplebal
[`hledger-simplebal`](https://github.com/simonmichael/hledger/blob/master/bin/hledger-simplebal)

9
bin/watchaccounts Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Watch hledger account names, updating on file change under the current directory.
# Arguments are passed to hledger. Useful when cleaning up accounts.
# Requires watchexec.
# Examples:
# watchaccounts expenses -2
# watchaccounts -f time.journal client1 date:thismonth -l
watchexec -c -- "echo ==; hledger accounts -t" $@