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) 沒有ueberzugpp但是有ueberzug
# Debain 12 (bookworm) neovim版本太舊 0.7lazy無法用故在shell腳本特殊處理 # Debain 12 (bookworm) neovim版本太舊 0.7lazy無法用故在shell腳本特殊處理
[packages.linux.debian] [packages.linux.debian]
apt_12 = [
'exa',
]
apt = [ apt = [
'sudo', 'sudo',
'zsh', 'zsh',
'vim', 'vim',
'git', 'git',
'exa',
'gcc', 'gcc',
] ]
apt_13 = [ apt_13 = [
'eza',
'neovim', 'neovim',
'lazygit', 'lazygit',
] ]

View File

@ -9,6 +9,8 @@
{{- $aptInstall := .packages.linux.debian.apt -}} {{- $aptInstall := .packages.linux.debian.apt -}}
{{- if eq .chezmoi.osRelease.versionCodename "trixie" -}} {{- if eq .chezmoi.osRelease.versionCodename "trixie" -}}
{{- $aptInstall := concat .packages.linux.debian.apt .packages.linux.debian.apt_13 -}} {{- $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 -}} {{- end -}}
apt_packages=( {{ $aptInstall | quoteList | join " " }} ) apt_packages=( {{ $aptInstall | quoteList | join " " }} )