浏览代码

Checking if .zshrc is a file or a symlink.

Robby Russell 15 年之前
父节点
当前提交
3ec52a1353
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tools/install.sh

+ 2 - 1
tools/install.sh

@@ -8,7 +8,7 @@ else
 fi
 
 echo "Looking for an existing zsh config..."
-if [ -f ~/.zshrc ]
+if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
 then
   echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh";
   cp ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
@@ -22,3 +22,4 @@ echo "Time to change your default shell to zsh!"
 chsh -s /bin/zsh
 
 echo "Hooray! Oh My Zsh has been installed."
+/bin/zsh