1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-12-12 15:34:50 +08:00
This commit is contained in:
Xscriptor 2025-12-11 19:47:19 +01:00 committed by GitHub
commit 9bd8577538
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,9 +22,14 @@ if [ -d ~/.oh-my-zsh ]; then
fi
if [ -e ~/.zshrc ]; then
ZSHRC_SAVE=~/.zshrc.omz-uninstalled-$(date +%Y-%m-%d_%H-%M-%S)
echo "Found ~/.zshrc -- Renaming to ${ZSHRC_SAVE}"
mv ~/.zshrc "${ZSHRC_SAVE}"
ZSHRC_ORIG=~/.zshrc.pre-oh-my-zsh
if [ -e "$ZSHRC_ORIG" ]; then
ZSHRC_SAVE=~/.zshrc.omz-uninstalled-$(date +%Y-%m-%d_%H-%M-%S)
echo "Found ~/.zshrc -- Renaming to ${ZSHRC_SAVE}"
mv ~/.zshrc "${ZSHRC_SAVE}"
else
echo "Found ~/.zshrc but no backup config detected -- leaving it untouched"
fi
fi
echo "Looking for original zsh config..."