還是由 .chezmoiexternal.toml 寫死處理

This commit is contained in:
Yuan Chiu 2025-05-04 18:01:32 +08:00
parent cce7f22efb
commit 842eb6c70d
2 changed files with 14 additions and 4 deletions

View File

@ -45,5 +45,15 @@
include = ["share/nvim/**"]
{{/* zsh(install-packages.sh) */ -}}
[".local/bin/zsh"]
type = "archive-file"
url = "https://github.com/romkatv/zsh-bin/releases/download/v6.1.1/zsh-5.8-linux-x86_64.tar.gz"
path = "bin/zsh"
[".local/share/zsh"]
type = "archive"
url = "https://github.com/romkatv/zsh-bin/releases/download/v6.1.1/zsh-5.8-linux-x86_64.tar.gz"
exact = true
include = ["share/zsh/**"]
{{/* lazygit */ -}}
{{ end }}

View File

@ -8,10 +8,10 @@
{{/* 部份已由.chezmoiexternal.toml處理了 */ -}}
{{/* 其他自訂手動安裝腳本: */ -}}
{{/* 手動安裝 eza */ -}}
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
{{/* 手動安裝 zsh */ -}}
# 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
{{/* **** Root Mode ***************************************************** */ -}}
{{ else -}}