From 487a5af9578e7b6ff93f9ba55b54db77065e98e7 Mon Sep 17 00:00:00 2001 From: lsy Date: Sat, 21 Sep 2024 15:13:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=8C=96=E5=AE=89=E8=A3=85=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Software.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Menus/Software.sh b/Menus/Software.sh index 4c5951b..0357f39 100644 --- a/Menus/Software.sh +++ b/Menus/Software.sh @@ -104,7 +104,7 @@ fi if [[ ! $pick_zsh =~ [Nn] ]];then - (sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && exit) + curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sed 's/read -r opt//g'| sed 's/exec zsh -l//g'| sh while [[ ! -d "$HOME/.oh-my-zsh" ]]; do sleep 3 done @@ -113,7 +113,7 @@ if [[ ! $pick_zsh =~ [Nn] ]];then git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions sudo sed -i 's/^#\?ZSH_THEME.*/ZSH_THEME="powerlevel10k\/powerlevel10k"/g' ~/.zshrc sudo sed -i 's/^#\?plugins.*/plugins=(zsh-syntax-highlighting zsh-autosuggestions command-not-found)/g' ~/.zshrc - exec zsh + exec zsh -l fi