From 482e4cba4120a3bc158b1b4e980aabaa392aee3a Mon Sep 17 00:00:00 2001 From: "Lockszmith (VAST@MacBook)" Date: Thu, 8 May 2025 04:37:00 -0400 Subject: [PATCH] Force creation of missing zellij/config.kdl Otherwise change only once --- .../run_onchange_before_update_zellij.config.default.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chezmoi.roots/_home/.chezmoiscripts/run_onchange_before_update_zellij.config.default.tmpl b/chezmoi.roots/_home/.chezmoiscripts/run_onchange_before_update_zellij.config.default.tmpl index f43ee84..57ab5a5 100755 --- a/chezmoi.roots/_home/.chezmoiscripts/run_onchange_before_update_zellij.config.default.tmpl +++ b/chezmoi.roots/_home/.chezmoiscripts/run_onchange_before_update_zellij.config.default.tmpl @@ -1,5 +1,10 @@ #! /usr/bin/env bash +{{- if not (stat (list .chezmoi.destDir ".config" "zellij" "config.kdl" | join .chezmoi.pathSeparator )) }} +# missing config, forcing regeneration: {{- randAlpha 64 }} +# {{ stat ".config/zellij/config.kdl" }} +# {{ output "pwd" }} +{{- end }} set -e echo "Generating zellij/config.kdl.tmpl..."