5cb0ed98d1e5f0119e7871e21948a6b931f14a78

Author
Nicholas T. <Nicholas.TD07@gmail.com>
Committer
Nicholas T. <Nicholas.TD07@gmail.com>
Date

Message

Fast installation time by shallow copying git repo

Use `--depth=1` to clone just the lastest version rather than every version in git.

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 }