From 842eb6c70d3e9c360fa4fa46cf3ab781c54b9037 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sun, 4 May 2025 18:01:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=84=E6=98=AF=E7=94=B1=20.chezmoiexternal.?= =?UTF-8?q?toml=20=E5=AF=AB=E6=AD=BB=E8=99=95=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .chezmoiexternal.toml | 10 ++++++++++ .../run_onchange_before_linux-install-packages.sh.tmpl | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml index b7ff7f2..f9ba67b 100644 --- a/.chezmoiexternal.toml +++ b/.chezmoiexternal.toml @@ -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 }} diff --git a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl index b7c3f6b..671fdc3 100644 --- a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl @@ -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 -}}