mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Merge 9000e673cd into e9fc134236
This commit is contained in:
commit
370cc5f639
1 changed files with 8 additions and 3 deletions
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue