]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Create shallow clones of remote modules
authorAlexander Barton <alex@barton.de>
Sat, 28 Dec 2019 22:05:17 +0000 (23:05 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 28 Dec 2019 22:05:17 +0000 (23:05 +0100)
bin/axzshctl

index 1db8a538802763f5ed4a3395b5c63baee939cbf0..5b2be804703606103721a44cedb0ded329d375a5 100755 (executable)
@@ -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