Browse Source

Fast installation time by shallow copying git repo

Use `--depth=1` to clone just the lastest version rather than every version in git.
Nicholas T. 9 years ago
parent
commit
5cb0ed98d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/install.sh

+ 1 - 1
tools/install.sh

@@ -10,7 +10,7 @@ if [ -d "$ZSH" ]; then
 fi
 fi
 
 
 echo "\033[0;34mCloning Oh My Zsh...\033[0m"
 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"
   echo "git not installed"
   exit
   exit
 }
 }