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.
This commit is contained in:
AlfredJKwack
2022-02-06 12:37:41 +00:00
committed by GitHub
parent 298020e4e3
commit d416fae848
+2 -2
View File
@@ -35,7 +35,7 @@ Add `antigen bundle zsh-users/zsh-completions` to your `~/.zshrc`.
* Clone the repository inside your oh-my-zsh repo: * 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: * 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: * 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`: * Include the directory in your `$fpath`, for example by adding in `~/.zshrc`: