zsh: clone plugins with a depth of 1

This commit is contained in:
Nico 2025-05-03 16:15:58 +10:00
parent 617b49b2ae
commit 3467be66d7

View file

@ -55,7 +55,7 @@ func plugInstall() {
sourcefile="$clonepath/$2" sourcefile="$clonepath/$2"
if command -v git > /dev/null && [ ! -d "$clonepath" ]; then if command -v git > /dev/null && [ ! -d "$clonepath" ]; then
git clone $1 "$clonepath" git clone $1 "$clonepath" --depth=1
fi fi
if [ -f "$sourcefile" ]; then if [ -f "$sourcefile" ]; then