-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsync-settings.sh
More file actions
executable file
·36 lines (30 loc) · 946 Bytes
/
sync-settings.sh
File metadata and controls
executable file
·36 lines (30 loc) · 946 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
34
35
36
#!/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 "Updating git config.." git/setup
runAction "Updating ghostty config.." ghostty/setup
runAction "Updating zsh config.." zsh/setup
runAction "Updating Claude config.." claude/setup
runAction "Updating Gemini config.." gemini/setup
runAction "Updating Zed config.." zed/setup
echo ""
echo -e "${BOLD}Done${RESET} 🎉"
echo ""