From cf25cf75bb23cb00f8bdda091128e96e53a2e600 Mon Sep 17 00:00:00 2001 From: xunmi-pc <寻觅> Date: Tue, 20 Feb 2024 18:44:34 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=B8=8D=E8=B6=B3=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=90=AF=E5=8A=A8=E8=A8=80?= =?UTF-8?q?=E7=81=B5=E7=9A=84=E9=97=AE=E9=A2=98,=20=E4=BF=AE=E5=A4=8Dzsh?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=9C=AA=E6=8C=89=E7=85=A7?= =?UTF-8?q?=E9=A2=84=E6=9C=9F=E7=A7=BB=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index b003bb5..dd6468f 100755 --- a/start.sh +++ b/start.sh @@ -103,8 +103,7 @@ Download_Config() { config_url=${ROOT_URL}raw/配置/zshrc sudo wget -t 3 -q --show-progress -c "${config_url}" || Show 1 "无法下载预设配置( ${config_url} )" sudo sed -i "s:export ZSH=/etc/oh-my-zsh:export ZSH=$ohmyzsh_dir:" zshrc - sudo echo "export 寻觅=${ROOT_INSTALL}" | cat - zshrc > .zshrc - sudo mv .zshrc /etc/skel/.zshrc + sudo mv zshrc /etc/skel/.zshrc cp -v /etc/skel/.zshrc $HOME cd $HOME ColorReset @@ -130,6 +129,7 @@ Install_Zsh [[ "$@" == *-c* ]] || Download_Config # 如果携带 -x 则不下载安装言灵 [[ "$@" == *-x* ]] || Download_X +sudo chown -R $USER:$USER $x_dir (( $X_START == 1 )) && zsh $x_dir/安装.zsh exec zsh # 写入配置文件