From 319a2750b7a5dfc58d00632f0c6c3511322d5612 Mon Sep 17 00:00:00 2001 From: inkch Date: Tue, 14 Jan 2025 15:26:56 +0900 Subject: [PATCH] fish: add env for hledger --- dot_config/private_fish/env.fish.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_config/private_fish/env.fish.tmpl b/dot_config/private_fish/env.fish.tmpl index c9343a7..8abfb90 100644 --- a/dot_config/private_fish/env.fish.tmpl +++ b/dot_config/private_fish/env.fish.tmpl @@ -155,6 +155,10 @@ if type -q stack; # Haskell set -x STACK_ROOT "$XDG_DATA_HOME"/stack end +if type -q hledger; + set -x LEDGER_FILE "$HOME/vc/accounting/hledger/main.journal" +end + {{- if (and (eq .chezmoi.os "linux") (eq .hosttype "desktop" "laptop")) }} if test -d "$XDG_DATA_HOME/flatpak/exports/bin" set -ax PATH "$XDG_DATA_HOME/flatpak/exports/bin"