fix(zsh/deploy): clean plugins directories before cloning them

This commit is contained in:
Julien Oculi 2024-07-11 12:59:19 +02:00
parent 42f25ece18
commit 9ac5cc0de0

View file

@ -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