1
0
chezmoi/home/.chezmoiscripts/run_once_onchange_10-install-packages.sh.tmpl
2024-08-03 17:51:49 +02:00

38 lines
789 B
Cheetah

#!{{ lookPath "bash" }}
# include lib
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
# args
args="--base --zsh"
{{- if (ne .hasNVim false) }}
args="${args} --nvim"
{{- end }}
{{- if (ne .hasLatex false) }}
args="${args} --latex"
{{- end }}
{{ if (eq .chezmoi.os "linux") -}}
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
log "Begin Arch/Manjaro Linux packages installation"
. {{ .chezmoi.workingTree }}/scripts/archlinux.sh ${args}
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"
log "Finish Debian/Ubuntu Linux packages installation"
{{- end }}
{{- end }}