add --depth operand

git clone --depth can speed up zsh installing, because only latest N commit will be downloaded
This commit is contained in:
Timofey 2014-09-07 22:07:34 +03:00
commit d38c0371d9

View file

@ -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
}