- Remove redundant installation checks in arduino.sh, git.sh - Add bash shell enforcement in install.sh to prevent compatibility issues - Streamline Arduino CLI installation logic for both Arch and other systems - Improve Git and Lazygit installation messaging consistency - Update install usage instructions for better clarity - Enhance shell compatibility by enforcing bash execution
25 lines
823 B
Bash
25 lines
823 B
Bash
#!/bin/bash
|
|
# Step 2: Zsh + Oh My Zsh + plugins
|
|
|
|
step "2/9 — Setting up Zsh"
|
|
|
|
if [[ ! -d "$HOME/.oh-my-zsh" ]]; then
|
|
RUNZSH=no KEEP_ZSHRC=yes sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" ||
|
|
RUNZSH=no KEEP_ZSHRC=yes sh -c "$(curl -kfsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
info "Oh My Zsh installed"
|
|
else
|
|
info "Oh My Zsh already present"
|
|
fi
|
|
|
|
ZSH_CUSTOM="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"
|
|
|
|
for plugin in zsh-autosuggestions zsh-syntax-highlighting; do
|
|
if [[ ! -d "$ZSH_CUSTOM/plugins/$plugin" ]]; then
|
|
git clone "https://github.com/zsh-users/$plugin" "$ZSH_CUSTOM/plugins/$plugin"
|
|
else
|
|
git -C "$ZSH_CUSTOM/plugins/$plugin" pull --quiet 2>/dev/null || true
|
|
fi
|
|
done
|
|
|
|
info "Zsh plugins installed/updated"
|