先試做 unRoot mode: eza和neovim

This commit is contained in:
2025-05-04 16:58:28 +08:00
parent d62459930e
commit 437eeec224
2 changed files with 33 additions and 2 deletions

View File

@@ -14,3 +14,26 @@
url = "https://github.com/alacritty/alacritty-theme"
refreshPeriod = "168h"
{{ end }}
{{ if and .unRootMode (eq .chezmoi.arch "amd64")}}
{{/* eza */ -}}
{{ $ezaVersion := "v0.21.3" -}}
[".local/bin/eza"]
type = "archive-file"
url = "https://github.com/eza-community/eza/releases/download/{{ $ezaVersion }}/eza_x86_64-unknown-{{ .chezmoi.os }}-gnu.tar.gz"
path = "eza"
{{/* neovim */ -}}
{{ $nvimVersion := "v0.11.1" -}}
[".local"]
type = "archive"
url = "https://github.com/neovim/neovim/releases/{{ $nvimVersion }}download/nvim-{{ .chezmoi.os }}-x86_64.tar.gz"
exact = true
stripComponents = 1
path = "nvim-linux-x86_64"
{{/* zsh */ -}}
{{/* lazygit */ -}}
{{ end }}