1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-03-28 18:53:47 +08:00
This commit is contained in:
Rongxin Liu 2026-03-26 18:41:32 +01:00 committed by GitHub
commit e38820d06b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,12 @@ if [ -e "$ZSHRC_ORIG" ]; then
echo "Your original zsh config was restored."
else
echo "No original zsh config found"
if [ -e "${ZSHRC_SAVE}" ]; then
echo "Restoring your current config and removing Oh My Zsh lines..."
grep -v 'source.*oh-my-zsh\.sh' "${ZSHRC_SAVE}" > ~/.zshrc
echo "Your config was restored with Oh My Zsh lines removed."
echo "Original file saved at: ${ZSHRC_SAVE}"
fi
fi
echo "Thanks for trying out Oh My Zsh. It's been uninstalled."