diff --git a/.chezmoidata/packages.toml b/.chezmoidata/packages.toml index 0ecb779..e69a001 100644 --- a/.chezmoidata/packages.toml +++ b/.chezmoidata/packages.toml @@ -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 diff --git a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl index 32d4a1f..dc19f12 100644 --- a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl @@ -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=() diff --git a/Readme.md b/Readme.md index fe4aaec..7e17db6 100644 --- a/Readme.md +++ b/Readme.md @@ -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 測試過