Change summary
dot_config/bash/bashrc.tmpl | 4 ++++
1 file changed, 4 insertions(+)
Detailed changes
@@ -97,6 +97,10 @@ fi
if [[ -f "$XDG_CONFIG_HOME/fnox/age.txt" ]]; then
export FNOX_AGE_KEY=$(grep "AGE-SECRET-KEY" "$XDG_CONFIG_HOME/fnox/age.txt")
if command -v fnox &> /dev/null; then
+{{ if eq .chezmoi.username "exedev" }}
+ # Load secrets immediately for non-interactive shells (e.g., agents)
+ eval "$(mise exec fnox@latest -- fnox hook-env -s bash 2>/dev/null || true)"
+{{ end }}
eval "$(mise exec fnox@latest -- fnox activate bash 2>/dev/null || true)"
fi
fi