Skip to content

Instantly share code, notes, and snippets.

@breithbarbot
Last active April 27, 2024 08:34
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save breithbarbot/254e58bd87009963b3f58405d75cbe6c to your computer and use it in GitHub Desktop.
Save breithbarbot/254e58bd87009963b3f58405d75cbe6c to your computer and use it in GitHub Desktop.
Uninstall Zsh + Oh My Zsh + Powerlevel10k theme (macOS & Linux)
#!/bin/sh
# Install Zsh + Oh My Zsh + Powerlevel10k theme (macOS & Linux)
# run: sh -c "$(curl -fsSL "$(echo "$(curl -s "https://api.github.com/gists/254e58bd87009963b3f58405d75cbe6c")" | grep -o '"raw_url": *"[^"]*"' | cut -d'"' -f4)")"
# Remove installations + configurations
rm -f ~/.p10k.zsh
rm -rf -- ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sh ~/.oh-my-zsh/tools/uninstall.sh -y
sudo chsh -s $(which bash)
if [ "$(uname -s)" = "Darwin" ]; then
brew uninstall zsh
else
sudo apt remove zsh -y
sudo apt autoremove -y
fi
rm -Rf ~/.zsh*
@carl-meyer-dev
Copy link

Thanks this was very useful

@David-cmd11
Copy link

Uffff por fin, un resultado, mil gracias!

@EbodShojaei
Copy link

Thanks this was very useful

ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment