Compare commits

..

3 Commits

Author SHA1 Message Date
cce7f22efb unRoot mode: install-packages: zsh 2025-05-04 17:49:41 +08:00
05dfc9cc6d .chezmoiexternal.toml nvim 2025-05-04 17:34:30 +08:00
6638686cfe 先處理已經確定可用的eza 2025-05-04 17:26:56 +08:00
2 changed files with 18 additions and 8 deletions

View File

@ -22,18 +22,28 @@
[".local/bin/eza"] [".local/bin/eza"]
type = "archive-file" type = "archive-file"
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 */ -}}
{{ $nvimVersion := "v0.11.1" -}} {{ $nvimVersion := "v0.11.1" -}}
[".local"] [".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" type = "archive"
url = "https://github.com/neovim/neovim/releases/download/{{ $nvimVersion }}/nvim-{{ .chezmoi.os }}-x86_64.tar.gz" url = "https://github.com/neovim/neovim/releases/download/{{ $nvimVersion }}/nvim-{{ .chezmoi.os }}-x86_64.tar.gz"
exact = true exact = true
stripComponents = 1 stripComponents = 1
path = "nvim-linux-x86_64" 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 */ -}}
{{/* lazygit */ -}} {{/* lazygit */ -}}
{{ end }} {{ end }}

View File

@ -9,9 +9,9 @@
{{/* 其他自訂手動安裝腳本: */ -}} {{/* 其他自訂手動安裝腳本: */ -}}
{{/* 手動安裝 eza */ -}} {{/* 手動安裝 eza */ -}}
# if command -v eza &> /dev/null; then if command -v zsh &> /dev/null; then
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/romkatv/zsh-bin/master/install)" -- -d ~/.local -e no
# fi fi
{{/* **** Root Mode ***************************************************** */ -}} {{/* **** Root Mode ***************************************************** */ -}}
{{ else -}} {{ else -}}