From: Alexander Barton Date: Sat, 28 Dec 2019 22:05:17 +0000 (+0100) Subject: axzshctl: Create shallow clones of remote modules X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=8eea5840d8c5fc594764e37664effe592b4f18c5 axzshctl: Create shallow clones of remote modules --- diff --git a/bin/axzshctl b/bin/axzshctl index 1db8a53..5b2be80 100755 --- a/bin/axzshctl +++ b/bin/axzshctl @@ -108,7 +108,7 @@ function EnablePlugin { mkdir -p "$AXZSH/repos" if [[ ! -e "$AXZSH/repos/$plugin" ]]; then ax_msg - "Cloning module from GitHub ..." - git clone "https://github.com/$1.git" \ + git clone --depth=1 "https://github.com/$1.git" \ "$AXZSH/repos/$plugin" fi # Try to enable a theme in this "foreign module", but ignore