Fixed atuin systemctl detection
This commit is contained in:
parent
b9347f957e
commit
a5ee5ebe88
1 changed files with 1 additions and 1 deletions
|
@ -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`
|
## Enables using the daemon to sync. Requires the daemon to be running in the background. Start it with `atuin daemon`
|
||||||
# enabled = false
|
# enabled = false
|
||||||
{{- if eq .chezmoi.os "linux" }}
|
{{- 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" }}
|
{{- if eq $systemd_unit "enabled" }}
|
||||||
enabled = true
|
enabled = true
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue