-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·33 lines (27 loc) · 937 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·33 lines (27 loc) · 937 Bytes
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
#!/usr/bin/env bash
set -e
echo "✨ Setting up dotfiles..."
# Install Homebrew if needed
if ! command -v brew &> /dev/null; then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Install packages from Brewfile
if [ -f Brewfile ]; then
echo "Installing Homebrew packages..."
brew bundle install
fi
# Install mise runtimes first (needed for mise tasks)
if command -v mise &> /dev/null; then
echo "Installing mise runtimes..."
mise install
fi
# Symlink dotfiles using mise tasks
echo "Symlinking dotfiles..."
if command -v mise &> /dev/null; then
MISE_CONFIG_FILE="$(dirname "$0")/config/mise/config.toml" mise run dotfiles:link:all
else
echo "Warning: mise not found, skipping dotfile linking"
echo "Install mise first, then run: mise run dotfiles:link:all"
fi
echo "✓ Setup complete! Restart your shell or run: source ~/.zshrc"