浏览代码

Merge pull request #3493 from NicholasTD07/patch-1

Fast installation time by shallow copying git repo
Robby Russell 9 年之前
父节点
当前提交
1ac2f8645e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/install.sh

+ 1 - 1
tools/install.sh

@@ -10,7 +10,7 @@ if [ -d "$ZSH" ]; then
 fi
 
 echo "\033[0;34mCloning Oh My Zsh...\033[0m"
-hash git >/dev/null 2>&1 && env git clone https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
+hash git >/dev/null 2>&1 && env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
   echo "git not installed"
   exit
 }