]> arthur.barton.de Git - ax-zsh.git/blobdiff - bin/axzshctl
axzshctl: Create shallow clones of remote modules
[ax-zsh.git] / 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