diff --git a/.chezmoidata/packages.toml b/.chezmoidata/packages.toml index d85ec6a..0e2a523 100644 --- a/.chezmoidata/packages.toml +++ b/.chezmoidata/packages.toml @@ -30,14 +30,14 @@ casks = [ # 特別備註: # Debain 12 (bookworm) 沒有eza,但是有exa # Debain 12 (bookworm) 沒有ueberzugpp,但是有ueberzug -# Debain 12 (bookworm) neovim版本太舊 0.7,lazy無法用 +# Debain 12 (bookworm) neovim版本太舊 0.7,lazy無法用,故在shell腳本特殊處理 [packages.linux.debian] apt = [ 'zsh', 'vim', - 'neovim', 'git', 'exa', + 'gcc', ] # Arch Linux ------------------------------------------------------------------- diff --git a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl index 7eb218c..9e673a7 100644 --- a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl @@ -20,8 +20,18 @@ if [ "$EUID" -ne 0 ]; then else apt install -y "${to_install_apt[@]}" fi -{{ end -}} +{{/* 手動安裝 neovim 0.11.1 */ -}} +{{ if and (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.arch "amd64") }} +curl -LO https://github.com/neovim/neovim/releases/download/v0.11.1/nvim-linux-x86_64.appimage +chmod u+x nvim-linux-x86_64.appimage +./nvim-linux-x86_64.appimage --appimage-extract +./squashfs-root/usr/bin/nvim +cp -rf squashfs-root/usr/* /usr/ +rm -r nvim-linux-x86_64.appimage squashfs-root +{{ end }} + +{{ end -}} {{/* ==== Arch Linux / Manjaro ========================================== */ -}} {{ if or (eq .chezmoi.osRelease.id "manjaro") (eq .chezmoi.osRelease.id "arch") -}}