diff --git a/initialize.sh b/initialize.sh index 9438b77..bbbadb5 100644 --- a/initialize.sh +++ b/initialize.sh @@ -48,6 +48,20 @@ install_zsh() { echo "Zsh installation completed and set as the default shell. Please restart your terminal." } +reinstall_oh_my_zsh() { + # Remove existing ~/.oh-my-zsh folder if it exists + if [ -d ~/.oh-my-zsh ]; then + echo "Removing existing Oh My Zsh folder..." + rm -rf ~/.oh-my-zsh + fi + + # Install Oh My Zsh + git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh + cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc + chsh -s $(which zsh) + + echo "Oh My Zsh reinstallation completed." +} # install home-brew install_homebrew @@ -57,9 +71,7 @@ install_homebrew install_zsh # install oh-my-zsh -#git clone https://git.mingzailao.live/mingzailao/ohmyzsh.git ~/.oh-my-zsh -#cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc -#chsh -s $(which zsh) +reinstall_oh_my_zsh # install powerlevel10k #git clone https://git.mingzailao.live/mingzailao/powerlevel10k.git ~/powerlevel10k