3ec52a13537ed9c56cf55d1ce7c02a3f6d75fdc4
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Checking if .zshrc is a file or a symlink.
Diff
1diff --git a/tools/install.sh b/tools/install.sh
2index d820adcb59ccadb9e7be4fccc41939b33e055aac..7b1ead62ef5a4c92ffd28a99e00e716aad768b64 100644
3--- a/tools/install.sh
4+++ b/tools/install.sh
5@@ -8,7 +8,7 @@ else
6 fi
7
8 echo "Looking for an existing zsh config..."
9-if [ -f ~/.zshrc ]
10+if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
11 then
12 echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh";
13 cp ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
14@@ -22,3 +22,4 @@ echo "Time to change your default shell to zsh!"
15 chsh -s /bin/zsh
16
17 echo "Hooray! Oh My Zsh has been installed."
18+/bin/zsh