-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall-system.sh
More file actions
executable file
·52 lines (39 loc) · 1.29 KB
/
install-system.sh
File metadata and controls
executable file
·52 lines (39 loc) · 1.29 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
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Define color codes for output
RESET='\033[0m'
RED='\033[1;31m'
GREEN='\033[1;32m'
BLUE='\033[1;34m'
BOLD='\033[1m'
ITALIC='\033[3m'
# Define helper for running each script
function runAction() {
echo -e "\n${BLUE}$1${RESET}"
if ! bash $(dirname "${BASH_SOURCE}")/$2.sh; then
echo -e "${BOLD}${RED}Error: Failed to configure ${2}${RESET}"
fi
}
if ! xcode-select -p 1>/dev/null; then
echo "Installing xcode-select"
xcode-select --install
echo "Or download it here https://developer.apple.com/download/more/"
read -p "When Ready, press any key to continue" -n 1 && echo ""
fi
runAction "Configuring mac.." macos/install
runAction "Configuring bin.." bin/setup
runAction "Configuring shell.." shell/setup
runAction "Installing brew.." brew/install
runAction "Configuring git.." git/setup
runAction "Configuring ssh.." git/ssh
runAction "Installing git tools.." git/install
runAction "Installing zsh.." zsh/install
runAction "Configuring zsh.." zsh/setup
runAction "Installing Ghostty.." ghostty/install
runAction "Installing Zed.." zed/install
runAction "Installing Claude.." claude/install
runAction "Configuring Claude.." claude/setup
runAction "Installing Gemini.." gemini/install
runAction "Configuring Gemini.." gemini/setup
echo ""
echo -e "${BOLD}Done${RESET} 🎉"
echo ""