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

38 lines
789 B
Cheetah
Raw Normal View History

2024-05-07 21:16:41 +00:00
#!{{ lookPath "bash" }}
2024-01-20 21:28:01 +00:00
2024-08-03 10:28:32 +00:00
# include lib
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
2024-01-20 21:28:01 +00:00
2024-08-03 15:21:54 +00:00
# args
args="--base --zsh"
{{- if (ne .hasNVim false) }}
args="${args} --nvim"
{{- end }}
{{- if (ne .hasLatex false) }}
args="${args} --latex"
{{- end }}
2024-03-03 14:49:17 +00:00
2024-05-07 21:13:20 +00:00
{{ if (eq .chezmoi.os "linux") -}}
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
2024-02-25 20:17:45 +00:00
2024-05-07 21:13:20 +00:00
log "Begin Arch/Manjaro Linux packages installation"
2024-01-20 21:28:01 +00:00
2024-08-03 15:21:54 +00:00
. {{ .chezmoi.workingTree }}/scripts/archlinux.sh ${args}
2024-05-07 21:13:20 +00: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 20:08:03 +00:00
2024-05-07 21:13:20 +00:00
log "Finish Debian/Ubuntu Linux packages installation"
2024-05-07 19:59:08 +00:00
2024-05-07 21:13:20 +00:00
{{- end }}
2024-01-20 21:20:36 +00:00
{{- end }}
2024-01-20 21:28:01 +00:00
2024-05-07 20:23:18 +00:00