- Version logged after [PASS] (not before) across all scripts - Pre-cache brew package lists with log_info progress - Read brew version from git describe cache (skip Ruby startup) - Batch mise use -g calls (single invocation for all tools) - Replace mise verify step with mise ls --current - Parallel vim plugin pulls - Skip donut compile when binary is fresh - Pre-check macOS defaults before writing (skip fsync when unchanged) - Pre-check dock state before dockutil calls - Remove redundant 'already installed' skip logs - Remove meetingbar and wispr-flow install scripts - Renumber scripts to fill gaps Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
36 lines
906 B
Bash
Executable File
36 lines
906 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Description:
|
|
# Install and configure tmux.
|
|
#
|
|
|
|
if ! command -v tmux &> /dev/null; then
|
|
case "$DOTS_PKG" in
|
|
apt)
|
|
sudo apt-get install -qq tmux
|
|
;;
|
|
pacman)
|
|
sudo pacman -S --noconfirm tmux
|
|
;;
|
|
brew)
|
|
brew install tmux
|
|
;;
|
|
*)
|
|
log_warn "Skipping tmux install: no supported package manager found"
|
|
return 0
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
# Compile screensaver (skip if binary is newer than source)
|
|
if command -v cc &> /dev/null && [ -f "$HOME/.tmux/donut.c" ]; then
|
|
if [ ! -f "$HOME/.tmux/donut" ] || [ "$HOME/.tmux/donut.c" -nt "$HOME/.tmux/donut" ]; then
|
|
cc -O2 -o "$HOME/.tmux/donut" "$HOME/.tmux/donut.c" -lm
|
|
fi
|
|
fi
|
|
|
|
log_pass "tmux configured"
|
|
tmux -V | log_quote
|
|
|