From 8d6cc555eb220e9b134d249e019036f8d88b4715 Mon Sep 17 00:00:00 2001 From: Konano Date: Wed, 9 Sep 2026 17:21:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20macOS=20=E4=B8=8A?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=88=A0=E9=99=A4=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E5=8F=8A=E5=AD=98=E5=9C=A8=E6=80=A7=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configure_priv.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure_priv.sh b/configure_priv.sh index 4c08392..c8006ac 100755 --- a/configure_priv.sh +++ b/configure_priv.sh @@ -161,7 +161,9 @@ configure_zsh() { if confirm_action "要配置 zsh 吗?" "Y"; then pkg_install zsh - rm ~/.oh-my-zsh -r + if [ -d ~/.oh-my-zsh ]; then + rm -r ~/.oh-my-zsh + fi git_clone ohmyzsh/ohmyzsh ~/.oh-my-zsh RUNZSH=no ZSH=~/.oh-my-zsh $scriptdir/files/install-ohmyzsh.sh @@ -217,7 +219,9 @@ configure_tmux() { if confirm_action "要配置 tmux 吗?" "Y"; then pkg_install tmux || return $? - rm ~/.tmux -r + if [ -d ~/.tmux ]; then + rm -r ~/.tmux + fi git_clone tmux-plugins/tpm ~/.tmux/plugins/tpm --norecursive git_clone tmux-plugins/tmux-sensible ~/.tmux/plugins/tmux-sensible git_clone tmux-plugins/tmux-yank ~/.tmux/plugins/tmux-yank