mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
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:
@@ -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`:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user