diff --git a/.bin/filli-report b/.bin/filli-report deleted file mode 100755 index 9b60a65..0000000 --- a/.bin/filli-report +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -hora reg 'fillidefilla' -O csv \ - -b "$(date -d "$(date +%Y-%m)-20 last month" +%Y-%m-%d)" \ - -e "$(date -d "$(date +%Y-%m)-19" +%Y-%m-%d)" \ - | sed 's/(fillidefilla:\(.*\))/\1/g' \ - | xsv select date,amount,total,account,description diff --git a/configs/hledger.nix b/configs/hledger.nix index cd672bf..ae88b37 100644 --- a/configs/hledger.nix +++ b/configs/hledger.nix @@ -14,6 +14,13 @@ (pkgs.writers.writeDashBin "hora" '' ${pkgs.hledger}/bin/hledger -f "${timeLedger}" "$@" '') + (pkgs.writers.writeDashBin "hora-filli" '' + ${pkgs.hledger}/bin/hledger -f "${timeLedger}" register fillidefilla -O csv \ + -b "$(date -d "$(date +%Y-%m)-20 last month" +%Y-%m-%d)" \ + -e "$(date -d "$(date +%Y-%m)-19" +%Y-%m-%d)" \ + | sed 's/(fillidefilla:\(.*\))/\1/g' \ + | xsv select date,amount,total,account,description + '') ]; niveum.hledger = {