Shallow cloning when installing locally
Create a shallow clones with a history truncated to 1 commit when installing locally. There's no point to pulling everything in. It's faster and saves resources.
This commit is contained in:
		
							parent
							
								
									a411ef3e09
								
							
						
					
					
						commit
						7362c9731b
					
				|  | @ -33,7 +33,7 @@ | ||||||
| 1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`) | 1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`) | ||||||
| 
 | 
 | ||||||
|     ```sh |     ```sh | ||||||
|     git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions |     git clone --depth 1 https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | ||||||
|     ``` |     ``` | ||||||
| 
 | 
 | ||||||
| 2. Add the plugin to the list of plugins for Oh My Zsh to load (inside `~/.zshrc`): | 2. Add the plugin to the list of plugins for Oh My Zsh to load (inside `~/.zshrc`): | ||||||
|  | @ -52,7 +52,7 @@ | ||||||
| 1. Clone this repository somewhere on your machine. This guide will assume `~/.zsh/zsh-autosuggestions`. | 1. Clone this repository somewhere on your machine. This guide will assume `~/.zsh/zsh-autosuggestions`. | ||||||
| 
 | 
 | ||||||
|     ```sh |     ```sh | ||||||
|     git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions |     git clone --depth 1 https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions | ||||||
|     ``` |     ``` | ||||||
| 
 | 
 | ||||||
| 2. Add the following to your `.zshrc`: | 2. Add the following to your `.zshrc`: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue