chezmoi nvim debian手動安裝腳本
This commit is contained in:
parent
3ea9d9ca3e
commit
881fa42086
@ -30,14 +30,14 @@ casks = [
|
|||||||
# 特別備註:
|
# 特別備註:
|
||||||
# Debain 12 (bookworm) 沒有eza,但是有exa
|
# Debain 12 (bookworm) 沒有eza,但是有exa
|
||||||
# Debain 12 (bookworm) 沒有ueberzugpp,但是有ueberzug
|
# Debain 12 (bookworm) 沒有ueberzugpp,但是有ueberzug
|
||||||
# Debain 12 (bookworm) neovim版本太舊 0.7,lazy無法用
|
# Debain 12 (bookworm) neovim版本太舊 0.7,lazy無法用,故在shell腳本特殊處理
|
||||||
[packages.linux.debian]
|
[packages.linux.debian]
|
||||||
apt = [
|
apt = [
|
||||||
'zsh',
|
'zsh',
|
||||||
'vim',
|
'vim',
|
||||||
'neovim',
|
|
||||||
'git',
|
'git',
|
||||||
'exa',
|
'exa',
|
||||||
|
'gcc',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Arch Linux -------------------------------------------------------------------
|
# Arch Linux -------------------------------------------------------------------
|
||||||
|
@ -20,8 +20,18 @@ if [ "$EUID" -ne 0 ]; then
|
|||||||
else
|
else
|
||||||
apt install -y "${to_install_apt[@]}"
|
apt install -y "${to_install_apt[@]}"
|
||||||
fi
|
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 ========================================== */ -}}
|
{{/* ==== Arch Linux / Manjaro ========================================== */ -}}
|
||||||
{{ if or (eq .chezmoi.osRelease.id "manjaro") (eq .chezmoi.osRelease.id "arch") -}}
|
{{ if or (eq .chezmoi.osRelease.id "manjaro") (eq .chezmoi.osRelease.id "arch") -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user