This commit is contained in:
Yuan Chiu 2025-05-02 21:34:14 +08:00
parent 29139fb776
commit fbcf47e6ac
2 changed files with 7 additions and 1 deletions

View File

@ -33,16 +33,20 @@ casks = [
# Debain 12 (bookworm) 沒有ueberzugpp但是有ueberzug
# Debain 12 (bookworm) neovim版本太舊 0.7lazy無法用故在shell腳本特殊處理
[packages.linux.debian]
apt_12 = [
'exa',
]
apt = [
'sudo',
'zsh',
'vim',
'git',
'exa',
'gcc',
]
apt_13 = [
'eza',
'neovim',
'lazygit',
]

View File

@ -9,6 +9,8 @@
{{- $aptInstall := .packages.linux.debian.apt -}}
{{- if eq .chezmoi.osRelease.versionCodename "trixie" -}}
{{- $aptInstall := concat .packages.linux.debian.apt .packages.linux.debian.apt_13 -}}
{{ else if and (eq .chezmoi.osRelease.id "debian") (hasKey .chezmoi.osRelease "versionID") (le .chezmoi.osRelease.versionID 12) }}
{{- $aptInstall := concat .packages.linux.debian.apt .packages.linux.debian.apt_12 -}}
{{- end -}}
apt_packages=( {{ $aptInstall | quoteList | join " " }} )