diff options
author | Robby Russell <robby@planetargon.com> | 2009-08-31 15:00:38 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2009-08-31 15:00:38 -0700 |
commit | e1f5c0c703c60d473144f58e1ab49d51c38ab526 (patch) | |
tree | c4f6b96d460b595f20c1178c033e0cf4c852cabe /tools/uninstall.sh | |
parent | 6fd7da65a34e9a2e10ccef7e83d974bab63cb99e (diff) | |
download | zsh-e1f5c0c703c60d473144f58e1ab49d51c38ab526.tar.gz zsh-e1f5c0c703c60d473144f58e1ab49d51c38ab526.tar.bz2 zsh-e1f5c0c703c60d473144f58e1ab49d51c38ab526.zip |
Adding an uninstaller tool
Diffstat (limited to 'tools/uninstall.sh')
-rw-r--r-- | tools/uninstall.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/uninstall.sh b/tools/uninstall.sh new file mode 100644 index 000000000..8ff583322 --- /dev/null +++ b/tools/uninstall.sh @@ -0,0 +1,20 @@ +echo "Removing ~/.oh-my-zsh" +if [[ -d ~/.oh-my-zsh ]] +then + rm -rf ~/.oh-my-zsh +fi + +echo "Looking for an existing zsh config..." +if [ -f ~/.zshrc.pre-oh-my-zsh ] || [ -h ~/.zshrc.pre-oh-my-zsh ] +then + echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh"; + rm ~/.zshrc; + cp ~/.zshrc.pre-oh-my-zsh ~/.zshrc; + source ~/.zshrc; +else + echo "Switching back to bash" + chsh -s /bin/bash + source /etc/profile +fi + +echo "Thanks for trying out Oh My Zsh. It's been uninstalled."
\ No newline at end of file |