-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·40 lines (34 loc) · 1.34 KB
/
install.sh
File metadata and controls
executable file
·40 lines (34 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -euo pipefail
# =============================================================================
# Preflight check
# =============================================================================
if ! command -v brew &>/dev/null; then
echo "Error: Homebrew not found. Run ./setup.sh first."
exit 1
fi
# =============================================================================
# Brew packages (via Brewfile)
# =============================================================================
echo ""
echo "=== Installing Homebrew packages from Brewfile ==="
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
brew bundle --file="$SCRIPT_DIR/Brewfile"
# =============================================================================
# Stow dotfiles
# =============================================================================
echo ""
echo "=== Applying dotfiles with Stow ==="
if command -v stow &>/dev/null; then
stow --adopt -t "$HOME" .
stow --adopt -t "$HOME" claude-global
echo "Symlinks created"
else
echo "Warning: stow not found, skipping dotfiles linking"
fi
# =============================================================================
# Done
# =============================================================================
echo ""
echo "=== Installation complete ==="
echo "Restart your terminal or run: source ~/.zshrc"