Tweak uninstall script: remove copy-paste error, some texts etc.

This commit is contained in:
Kuba Serafinowski 2011-03-06 09:38:18 +01:00
commit abe0472dcb

View file

@ -1,20 +1,20 @@
echo "Removing ~/.oh-my-zsh" echo "Removing Oh My Zsh"
if [[ -d ~/.oh-my-zsh ]] if [[ -d ~/.oh-my-zsh ]]
then then
rm -rf ~/.oh-my-zsh rm -rf ~/.oh-my-zsh
fi fi
echo "Looking for an existing zsh config..." echo "Looking for a previous zsh config..."
if [ -f ~/.zshrc.pre-oh-my-zsh ] || [ -h ~/.zshrc.pre-oh-my-zsh ] if [ -f ~/.zshrc.pre-oh-my-zsh ] || [ -h ~/.zshrc.pre-oh-my-zsh ]
then then
echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh"; echo "File found! Moving it back in place";
rm ~/.zshrc; rm ~/.zshrc;
cp ~/.zshrc.pre-oh-my-zsh ~/.zshrc; mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc;
source ~/.zshrc; source ~/.zshrc;
else else
echo "Switching back to bash" echo "File not found. Switching back to bash"
chsh -s /bin/bash chsh -s /bin/bash
source /etc/profile source /etc/profile
fi fi
echo "Thanks for trying out Oh My Zsh. It's been uninstalled." echo "Thanks for trying out Oh My Zsh. It's been uninstalled."