From 613f06fe4f1acea6a24cb6ad21985b5a77ddeaa7 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sun, 4 May 2025 18:16:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E5=98=97=E8=A9=A6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=85=B3=E6=9C=AC=E5=AE=89=E8=A3=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .chezmoiexternal.toml | 15 --------------- ...onchange_before_linux-install-packages.sh.tmpl | 6 +++--- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml index 1618a75..b7ff7f2 100644 --- a/.chezmoiexternal.toml +++ b/.chezmoiexternal.toml @@ -45,20 +45,5 @@ 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/**"] -[".local/share/terminfo"] - 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/terminfo/**"] - {{/* 手動安裝 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 671fdc3..761c9d5 100644 --- a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl @@ -9,9 +9,9 @@ {{/* 其他自訂手動安裝腳本: */ -}} {{/* 手動安裝 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 +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 -}}