From be304977dd67014e066da9367dbf2a659bf205c3 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 12 Dec 2023 22:30:40 +0900 Subject: [PATCH] tweaked zsh install script --- install-scripts/zsh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-scripts/zsh.sh b/install-scripts/zsh.sh index d35191f..14f87e5 100644 --- a/install-scripts/zsh.sh +++ b/install-scripts/zsh.sh @@ -73,13 +73,13 @@ if command -v zsh >/dev/null; then echo "Directory .oh-my-zsh already exists. Skipping re-installation." fi # Check if the directories exist before cloning the repositories - if [ ! -d "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" ]; then + if [ ! -d "$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" ]; then git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions || true else echo "Directory zsh-autosuggestions already exists. Skipping cloning." fi - if [ ! -d "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting" ]; then + if [ ! -d "$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting" ]; then git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting || true else echo "Directory zsh-syntax-highlighting already exists. Skipping cloning."