- 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
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# Step 4: Zellij terminal multiplexer
|
|
|
|
step "4/9 — Installing Zellij"
|
|
|
|
if $IS_ARCH; then
|
|
$PKG_INSTALL zellij
|
|
else
|
|
curl -kL https://github.com/zellij-org/zellij/releases/latest/download/zellij-x86_64-unknown-linux-musl.tar.gz | tar xz -C /tmp
|
|
sudo mv /tmp/zellij /usr/local/bin/
|
|
fi
|
|
info "Zellij installed/updated"
|
|
|
|
mkdir -p ~/.config/zellij/layouts
|
|
backup_config ~/.config/zellij/config.kdl
|
|
write_zellij_config ~/.config/zellij/config.kdl
|
|
|
|
cat >~/.config/zellij/layouts/arduino.kdl <<'LAYOUT'
|
|
layout {
|
|
tab name="code" focus=true {
|
|
pane split_direction="vertical" {
|
|
pane size="65%" {
|
|
command "nvim"
|
|
args "."
|
|
}
|
|
pane split_direction="horizontal" {
|
|
pane size="60%" name="terminal"
|
|
pane size="40%" name="serial" {
|
|
command "bash"
|
|
args "-c" "echo '⚡ Serial — run: tio /dev/ttyUSB0 -b 115200'"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tab name="git" {
|
|
pane {
|
|
command "lazygit"
|
|
}
|
|
}
|
|
}
|
|
LAYOUT
|
|
info "Zellij configured with $THEME_DISPLAY_NAME + Arduino layout"
|