tweaked zsh install script

This commit is contained in:
JaKooLit 2023-12-12 22:30:40 +09:00
parent 08aafc2135
commit be304977dd

View File

@ -73,13 +73,13 @@ if command -v zsh >/dev/null; then
echo "Directory .oh-my-zsh already exists. Skipping re-installation." echo "Directory .oh-my-zsh already exists. Skipping re-installation."
fi fi
# Check if the directories exist before cloning the repositories # 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 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions || true
else else
echo "Directory zsh-autosuggestions already exists. Skipping cloning." echo "Directory zsh-autosuggestions already exists. Skipping cloning."
fi 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 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting || true
else else
echo "Directory zsh-syntax-highlighting already exists. Skipping cloning." echo "Directory zsh-syntax-highlighting already exists. Skipping cloning."