美化安装不生效
This commit is contained in:
parent
cd0499c3b2
commit
487a5af957
@ -104,7 +104,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
if [[ ! $pick_zsh =~ [Nn] ]];then
|
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
|
while [[ ! -d "$HOME/.oh-my-zsh" ]]; do
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
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
|
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/^#\?ZSH_THEME.*/ZSH_THEME="powerlevel10k\/powerlevel10k"/g' ~/.zshrc
|
||||||
sudo sed -i 's/^#\?plugins.*/plugins=(zsh-syntax-highlighting zsh-autosuggestions command-not-found)/g' ~/.zshrc
|
sudo sed -i 's/^#\?plugins.*/plugins=(zsh-syntax-highlighting zsh-autosuggestions command-not-found)/g' ~/.zshrc
|
||||||
exec zsh
|
exec zsh -l
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user