fish: add env for hledger

This commit is contained in:
inkch 2025-01-14 15:26:56 +09:00
parent c5a650956b
commit 319a2750b7

View File

@ -155,6 +155,10 @@ if type -q stack; # Haskell
set -x STACK_ROOT "$XDG_DATA_HOME"/stack set -x STACK_ROOT "$XDG_DATA_HOME"/stack
end 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 (and (eq .chezmoi.os "linux") (eq .hosttype "desktop" "laptop")) }}
if test -d "$XDG_DATA_HOME/flatpak/exports/bin" if test -d "$XDG_DATA_HOME/flatpak/exports/bin"
set -ax PATH "$XDG_DATA_HOME/flatpak/exports/bin" set -ax PATH "$XDG_DATA_HOME/flatpak/exports/bin"