From d38c0371d9ccaa044fb981569570873e3513f393 Mon Sep 17 00:00:00 2001 From: Timofey Date: Sun, 7 Sep 2014 22:07:34 +0300 Subject: [PATCH] add --depth operand git clone --depth can speed up zsh installing, because only latest N commit will be downloaded --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index a53ac48ab..f08403606 100755 --- a/tools/install.sh +++ b/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 5 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || { echo "git not installed" exit }