From bb124a64a7e14cb92c89cae89f8f8cc857713b15 Mon Sep 17 00:00:00 2001 From: Tomas Pereira de Vasconcelos Date: Sun, 6 Dec 2020 23:47:49 +0100 Subject: [PATCH 1/2] add --depth=1 to git clone command in INSTALL.md --- INSTALL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 9d2915ef..b227fa63 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -33,7 +33,7 @@ 1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`) ```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`): @@ -49,7 +49,7 @@ 1. Clone this repository somewhere on your machine. This guide will assume `~/.zsh/zsh-autosuggestions`. ```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`: From 0da3796e576ce960a471cf49b10e2aaac60b10e9 Mon Sep 17 00:00:00 2001 From: Tomas Pereira de Vasconcelos Date: Sun, 6 Dec 2020 23:56:29 +0100 Subject: [PATCH 2/2] fix shellcheck issue SC2086 (double quote to prevent globbing and word splitting) in INSTALL.md --- INSTALL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index b227fa63..c9827cb2 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -33,7 +33,7 @@ 1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`) ```sh - git clone --depth=1 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`):