From b89996c7dbbd37f05bcfd409aefca586d3d366f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A8=8A=E6=97=AD=E4=B8=9C?= Date: Fri, 8 Mar 2024 02:47:23 -0500 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=20=E4=BF=AE=E5=A4=8Dzsh?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 833e34d..50dcea0 100755 --- a/start.sh +++ b/start.sh @@ -126,7 +126,10 @@ Download_X(){ ([ -x "$(command -v git)" ] && [ -x "$(command -v zsh)" ]) || Install_PKG # 如果携带 -c 则不下载安装ohmyzsh -([ -x "$(command -v zsh)" ] || [[ "$@" == *-c* ]]) || Download_Config +if [ -f $HOME/.zshrc ]; then + mv $HOME/.zshrc $HOME/.zshrc.old +fi +[[ "$@" == *-c* ]] || Download_Config # 如果携带 -x 则不下载安装言灵 [[ "$@" == *-x* ]] || Download_X sudo chown -R $USER:$USER $x_dir