hledger/bin/watchaccounts
2022-10-27 11:24:45 -10:00

10 lines
344 B
Bash
Executable File

#!/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" $@