Files
dotfiles/install.d/21-git.sh
Andrejus b62a6c00f9 chore(install): optimize logging, speed, cleanup
- 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>
2026-03-24 18:09:38 +00:00

31 lines
729 B
Bash
Executable File

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Configure git.
#
# Skip in Codespaces (pre-installed in universal image)
[[ "$DOTS_ENV" == "codespaces" ]] && { git --version | log_quote; return 0; }
if ! command -v git &> /dev/null; then
case "$DOTS_PKG" in
apt)
sudo apt-get install -qq git
;;
pacman)
sudo pacman -S --noconfirm git
;;
brew)
brew install git
;;
*)
log_warn "Skipping git install: no supported package manager found"
return 0
;;
esac
fi
log_pass "git configured"
git --version | log_quote