summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhledger-allocation5
1 files changed, 4 insertions, 1 deletions
diff --git a/hledger-allocation b/hledger-allocation
index e706ba2..87a6541 100755
--- a/hledger-allocation
+++ b/hledger-allocation
@@ -1,5 +1,8 @@
+#!/usr/bin/env bash
-alias cleanup="tail -n1 | tr -d [:alpha:] | tr -d [:blank:] | tr -d [=,=]"
+function cleanup() {
+ tail -n1 $1 | tr -d [:alpha:] | tr -d [:blank:] | tr -d [=,=]
+}
networth=$(hledger bal ^as ^li --value=now,USD --output-format=csv \
| tail -n1 \