dotfiles/.zsh/.functions/hl-group
2026-08-15 19:39:06 +01:00

11 lines
453 B
Text

# GROUPED BAR RENDERING
# render monthly bar comparisons by account
local chart_script="$HOME/.local/bin/hledger-charts"
local journal="${HLEDGER_JOURNAL:-$HOME/obsidian/finances/journals/2026.journal}"
if [[ -x "$chart_script" ]]; then
"$chart_script" grouped --journal "$journal" "${@:-expenses}"
else
echo "warning: hledger-charts not found, defaulting to monthly tabular matrix" >&2
hledger -f "$journal" balance -M "${@:-expenses}"
fi