hledger/bin/watchaccounts

10 lines
344 B
Plaintext
Raw Normal View History

2022-10-28 00:24:45 +03:00
#!/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" $@