Compare commits

..

2 Commits

Author SHA1 Message Date
lsy
7dae7994b3 美化安装不生效 2024-09-21 14:41:52 +08:00
lsy
5432c2b7b0 美化安装不生效 2024-09-21 14:26:31 +08:00

View File

@ -104,7 +104,7 @@ fi
if [[ ! $pick_zsh =~ [Nn] ]];then
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh
(sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.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
source ~/.zshrc
exec zsh
fi