Skip to content

Instantly share code, notes, and snippets.

@brei0x
Last active December 9, 2024 02:41
Show Gist options
  • Save brei0x/254e58bd87009963b3f58405d75cbe6c to your computer and use it in GitHub Desktop.
Save brei0x/254e58bd87009963b3f58405d75cbe6c 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*
@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

@anvesh3223
Copy link

thank you so much......very very helpful

@suyash20-debug
Copy link

suyash20-debug commented Jun 19, 2024

thanks .. saved so much of my time

@Agslz
Copy link

Agslz commented Jul 6, 2024

Nice script!

@hamolicious
Copy link

Thank you, very useful.

@littlekath25
Copy link

Thank you so much!

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