Browse code

Checking if .zshrc is a file or a symlink.

Robby Russell authored on 31/08/2009 at 01:44:14
Showing 1 changed files
... ...
@@ -8,7 +8,7 @@ else
8 8
 fi
9 9
 
10 10
 echo "Looking for an existing zsh config..."
11
-if [ -f ~/.zshrc ]
11
+if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
12 12
 then
13 13
   echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh";
14 14
   cp ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
... ...
@@ -22,3 +22,4 @@ echo "Time to change your default shell to zsh!"
22 22
 chsh -s /bin/zsh
23 23
 
24 24
 echo "Hooray! Oh My Zsh has been installed."
25
+/bin/zsh
25 26
\ No newline at end of file