Skip to content

Instantly share code, notes, and snippets.

@bfgits
Forked from brei0x/uninstall_zsh.sh
Created December 9, 2024 02:41
Show Gist options
  • Save bfgits/13d67ca8c5ed2452dd943c5c00daef0e to your computer and use it in GitHub Desktop.
Save bfgits/13d67ca8c5ed2452dd943c5c00daef0e to your computer and use it in GitHub Desktop.
Uninstall Zsh + Oh My Zsh + Powerlevel10k theme (macOS & Linux)
#!/bin/sh
# Uninstall 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*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment