1
0
chezmoi/home/.chezmoiscripts/run_once_onchange_10-install-packages.sh.tmpl

43 lines
856 B
Cheetah
Raw Normal View History

2024-05-07 23:16:41 +02:00
#!{{ lookPath "bash" }}
2024-01-20 22:28:01 +01:00
2024-08-03 12:28:32 +02:00
# include lib
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
2024-01-20 22:28:01 +01:00
2024-08-03 17:21:54 +02:00
# args
args="--base --zsh"
2024-08-03 17:21:54 +02:00
{{- if (ne .hasNVim false) }}
args="${args} --nvim"
{{- end }}
2024-08-03 23:17:16 +02:00
{{- if (ne .hasLVim false) }}
args="${args} --lvim"
{{- end }}
2024-08-03 17:21:54 +02:00
{{- if (ne .hasLatex false) }}
args="${args} --latex"
{{- end }}
2024-03-03 15:49:17 +01:00
2024-05-07 23:13:20 +02:00
{{ if (eq .chezmoi.os "linux") -}}
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
2024-02-25 21:17:45 +01:00
2024-05-07 23:13:20 +02:00
log "Begin Arch/Manjaro Linux packages installation"
2024-01-20 22:28:01 +01:00
2024-08-03 23:17:16 +02:00
. {{ .chezmoi.workingTree }}/scripts/manjaro.sh ${args}
2024-05-07 23:13:20 +02:00
log "Finish Arch/Manjaro Linux packages installation"
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
log "Begin Debian/Ubuntu Linux packages installation"
err "Don't have any install script for Debian/Ubuntu"
2024-05-07 22:08:03 +02:00
2024-05-07 23:13:20 +02:00
log "Finish Debian/Ubuntu Linux packages installation"
2024-05-07 21:59:08 +02:00
2024-05-07 23:13:20 +02:00
{{- end }}
2024-01-20 22:20:36 +01:00
{{- end }}
2024-01-20 22:28:01 +01:00
2024-05-07 22:23:18 +02:00