add 新增支援 Ubuntu 24.04

This commit is contained in:
Yuan Chiu 2025-05-04 00:16:15 +08:00
parent a9c82b6db7
commit bf4205ddef
3 changed files with 22 additions and 1 deletions

View File

@ -27,7 +27,22 @@ casks = [
# 'macvim',
]
# Ubuntu -----------------------------------------------------------------------
# Ubuntu 24.04.2 LTS 測試過
# TODO: lazygit尚未處理
[packages.linux.ubuntu]
apt = [
'sudo',
'zsh',
'vim',
'git',
'gcc',
'eza',
'neovim',
]
# Debian -----------------------------------------------------------------------
# Debian 12, Debian 13 測試過
# 特別備註:
# Debain 12 (bookworm) 沒有eza但是有exa
# Debain 12 (bookworm) 沒有ueberzugpp但是有ueberzug

View File

@ -3,7 +3,7 @@
#!/bin/bash
{{/* ==== Debian ======================================================== */ -}}
{{ if eq .chezmoi.osRelease.id "debian" -}}
{{ if or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu") -}}
{{/* ---- 整理待安裝清單 -------------------------------------------------- */ -}}
{{- $aptInstall := .packages.linux.debian.apt -}}
@ -12,6 +12,11 @@
{{ 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 -}}
{{ if eq .chezmoi.osRelease.id "ubuntu" -}}
{{- $aptInstall = .packages.linux.ubuntu.apt -}}
{{ end -}}
apt_packages=( {{ $aptInstall | quoteList | join " " }} )
to_install_apt=()

View File

@ -20,6 +20,7 @@ Yuan dotfile 自用環境設定檔
* macOS 15 Sequoia -主要桌面電腦工作開發用 -2025/5/2 測試過
* Manjaro Linux -主要桌面電腦工作開發用 -2025/5/2 測試過
* Debian (無GUI) -伺服器主機與Container執行環境用 -2025/5/2 測試過
* Ubuntu 24.04.2 LTS (無GUI) -雲端主機執行環境用 -2025/5/4 測試過
* Manjaro Linux (無GUI) - 2025/5/2 測試過
* Arch Linux (無GUI) -2025/5/2 測試過