Skip to content

Commit

Permalink
Updated scripts and tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Dec 11, 2023
1 parent f23a69c commit df4c9b3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions root/.chezmoi.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@
{{- $ephemeral = true -}}
{{- end -}}

{{- if eq .chezmoi.os "windows" -}}
{{- $ephemeral = true -}}
{{- end -}}

{{- if not $ephemeral -}}
{{- if stdinIsATTY -}}
{{- $headless = promptBoolOnce . "headless" "headless" -}}
{{- $ephemeral = promptBoolOnce . "ephemeral" "ephemeral" -}}
{{- if not $ephemeral -}}
{{- $docker = promptBoolOnce . "docker" "docker" -}}
{{- end -}}
{{- else -}}
{{- $ephemeral = true -}}
{{- $headless = true -}}
{{- end -}}
{{- end -}}

[data]
docker = {{ $docker }}
ephemeral = {{ $ephemeral }}
Expand Down
4 changes: 3 additions & 1 deletion root/.chezmoiignore.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
.chezmoiscripts/linux/**
{{- end -}}

{{- if (or (.ephemeral) (.headless)) -}}
{{- if eq .chezmoi.os "linux" -}}
{{- if (or (.ephemeral) (.headless)) -}}
.config/alacrity/**
.config/fontconfig/**
.config/i3/**
Expand All @@ -14,4 +15,5 @@
.config/wpg/**
.config/xfce4/**
.config/picom.conf
{{- end -}}
{{- end -}}

0 comments on commit df4c9b3

Please sign in to comment.