-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·29 lines (22 loc) · 760 Bytes
/
Copy pathsetup
File metadata and controls
executable file
·29 lines (22 loc) · 760 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
#!/usr/bin/env bash
# setup: The one-command setup entry point.
# curl -fsSL https://raw.githubusercontent.com/user/dotfiles/master/setup | bash
set -e
# Define directories
DOTFILES_DIR="$HOME/dotfiles"
# 1. Install Xcode Command Line Tools
if ! xcode-select -p &>/dev/null; then
echo "🛠️ Installing Xcode Command Line Tools..."
xcode-select --install
fi
# 2. Clone repo if not already there
if [ ! -d "$DOTFILES_DIR" ]; then
echo "🚀 Cloning dotfiles..."
git clone https://github.com/anthuanvasquez/dotfiles.git "$DOTFILES_DIR"
fi
cd "$DOTFILES_DIR"
# 3. Give execution permissions
chmod +x setup install scripts/* os/* bin/* modules/*/install.sh 2>/dev/null || true
# 4. Launch installer
echo "📦 Starting installation..."
./install