From 9ac5cc0de0886de4030d3a5a3f0b610d0fc58063 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 11 Jul 2024 12:59:19 +0200 Subject: [PATCH] fix(zsh/deploy): clean plugins directories before cloning them --- zsh/_deploy.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zsh/_deploy.sh b/zsh/_deploy.sh index ebd364d..f0c8688 100644 --- a/zsh/_deploy.sh +++ b/zsh/_deploy.sh @@ -3,7 +3,11 @@ cp -a ./zsh/zsh/. /root chsh -s /usr/bin/zsh # Install zsh-autosuggestions plugin -git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions +PATH=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions +rm -rf $PATH/* +git clone https://github.com/zsh-users/zsh-autosuggestions $PATH # Install zsh-syntax-highlighting -git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting +PATH=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting +rm -rf $PATH/* +git clone https://github.com/zsh-users/zsh-syntax-highlighting $PATH