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 -}}