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"
|
|
|
|
|
|
|
|
{{- if (ne .hasNVim false) }}
|
|
|
|
args="${args} --nvim"
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- 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 17:21:54 +02:00
|
|
|
. {{ .chezmoi.workingTree }}/scripts/archlinux.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"
|
|
|
|
|
2024-08-02 16:21:24 +02:00
|
|
|
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
|
|
|
|