unRoot mode neovim
This commit is contained in:
parent
613f06fe4f
commit
7313f302e6
@ -24,26 +24,7 @@
|
|||||||
url = "https://github.com/eza-community/eza/releases/download/{{ $ezaVersion }}/eza_x86_64-unknown-{{ .chezmoi.os }}-gnu.tar.gz"
|
url = "https://github.com/eza-community/eza/releases/download/{{ $ezaVersion }}/eza_x86_64-unknown-{{ .chezmoi.os }}-gnu.tar.gz"
|
||||||
path = "./eza"
|
path = "./eza"
|
||||||
|
|
||||||
{{/* 手動安裝 neovim */ -}}
|
{{/* 手動安裝 neovim (已在install-packages.sh處理) */ -}}
|
||||||
{{ $nvimVersion := "v0.11.1" -}}
|
|
||||||
[".local/bin/nvim"]
|
|
||||||
type = "archive-file"
|
|
||||||
url = "https://github.com/neovim/neovim/releases/download/{{ $nvimVersion }}/nvim-{{ .chezmoi.os }}-x86_64.tar.gz"
|
|
||||||
stripComponents = 1
|
|
||||||
path = "bin/nvim"
|
|
||||||
[".local/lib/nvim"]
|
|
||||||
type = "archive"
|
|
||||||
url = "https://github.com/neovim/neovim/releases/download/{{ $nvimVersion }}/nvim-{{ .chezmoi.os }}-x86_64.tar.gz"
|
|
||||||
exact = true
|
|
||||||
stripComponents = 1
|
|
||||||
include = ["lib/nvim/**"]
|
|
||||||
[".local/share/nvim"]
|
|
||||||
type = "archive"
|
|
||||||
url = "https://github.com/neovim/neovim/releases/download/{{ $nvimVersion }}/nvim-{{ .chezmoi.os }}-x86_64.tar.gz"
|
|
||||||
exact = true
|
|
||||||
stripComponents = 1
|
|
||||||
include = ["share/nvim/**"]
|
|
||||||
|
|
||||||
{{/* 手動安裝 zsh (已在install-packages.sh處理) */ -}}
|
{{/* 手動安裝 zsh (已在install-packages.sh處理) */ -}}
|
||||||
{{/* 手動安裝 lazygit */ -}}
|
{{/* 手動安裝 lazygit */ -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -13,6 +13,17 @@ if ! command -v zsh &> /dev/null; then
|
|||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/romkatv/zsh-bin/master/install)" -- -d ~/.local -e no
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/romkatv/zsh-bin/master/install)" -- -d ~/.local -e no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
{{/* 手動安裝 neovim 0.11.1 */ -}}
|
||||||
|
{{ if eq .chezmoi.arch "amd64"}}
|
||||||
|
if ! command -v zsh &> /dev/null; then
|
||||||
|
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
|
||||||
|
cp -rf squashfs-root/usr/* ~/.local/
|
||||||
|
rm -r nvim-linux-x86_64.appimage squashfs-root
|
||||||
|
fi
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{/* **** Root Mode ***************************************************** */ -}}
|
{{/* **** Root Mode ***************************************************** */ -}}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user