1ac2f8645e9cec48cbcb036f02479d3666ae13c8

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #3493 from NicholasTD07/patch-1

Fast installation time by shallow copying git repo

Diff

 1diff --git a/tools/install.sh b/tools/install.sh
 2index a53ac48aba43d5c602809a40d02bc0d5bbd75d71..69213d4a314fd6b6e17c5a7fa72dea669b6e03d8 100755
 3--- a/tools/install.sh
 4+++ b/tools/install.sh
 5@@ -10,7 +10,7 @@ if [ -d "$ZSH" ]; then
 6 fi
 7 
 8 echo "\033[0;34mCloning Oh My Zsh...\033[0m"
 9-hash git >/dev/null 2>&1 && env git clone https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
10+hash git >/dev/null 2>&1 && env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
11   echo "git not installed"
12   exit
13 }