From d416fae8482ee0fdf48521148f132c968fd09369 Mon Sep 17 00:00:00 2001 From: AlfredJKwack Date: Sun, 6 Feb 2022 12:37:41 +0000 Subject: [PATCH] Installation > git clone only last commit When installing either manually or with oh-my-zsh it's better to create a shallow clone with a history truncated to the latest commit only. The installation will be faster and less resource intensive. End users don't care for the entire repo's history and branches anyway. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aab6a30..1089cb9 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Add `antigen bundle zsh-users/zsh-completions` to your `~/.zshrc`. * Clone the repository inside your oh-my-zsh repo: - git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions + git clone --depth 1 https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions * Enable it in your `.zshrc` by adding it to your plugin list and reloading the completion: @@ -46,7 +46,7 @@ Add `antigen bundle zsh-users/zsh-completions` to your `~/.zshrc`. * Clone the repository: - git clone git://github.com/zsh-users/zsh-completions.git + git clone --depth 1 git://github.com/zsh-users/zsh-completions.git * Include the directory in your `$fpath`, for example by adding in `~/.zshrc`: