From a5ee5ebe880be665c1f27f889ad147f4f72b0ed2 Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Mon, 4 Aug 2025 03:48:27 +0000 Subject: [PATCH] Fixed atuin systemctl detection --- chezmoi.roots/_home/private_dot_config/atuin/config.toml.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chezmoi.roots/_home/private_dot_config/atuin/config.toml.tmpl b/chezmoi.roots/_home/private_dot_config/atuin/config.toml.tmpl index 13e0714..015ffba 100644 --- a/chezmoi.roots/_home/private_dot_config/atuin/config.toml.tmpl +++ b/chezmoi.roots/_home/private_dot_config/atuin/config.toml.tmpl @@ -241,7 +241,7 @@ records = true ## Enables using the daemon to sync. Requires the daemon to be running in the background. Start it with `atuin daemon` # enabled = false {{- if eq .chezmoi.os "linux" }} -{{- $systemd_unit := output "systemctl" "--user" "is-enabled" "atuin.service" }} +{{- $systemd_unit := output "sh" "-c" "/usr/bin/systemctl --user is-enabled atuin.service 2> /dev/null || true" }} {{- if eq $systemd_unit "enabled" }} enabled = true {{- end -}}