-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·113 lines (96 loc) · 3.29 KB
/
setup.sh
File metadata and controls
executable file
·113 lines (96 loc) · 3.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/bin/bash
echo "🚀 Personal Mac Setup Starting..."
# ============================================
# Common Setup (Xcode CLT, Homebrew, Helpers)
# ============================================
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/common.sh"
# ============================================
# Starship Prompt
# ============================================
echo "🚀 Checking Starship..."
brew_install starship
add_to_zshrc 'eval "$(starship init zsh)"'
echo "✅ Starship ready"
# ============================================
# CLI Tools
# ============================================
echo "🔧 Installing CLI tools..."
brew_install tree
brew_install vegeta
brew_install awscli
brew_install defaultbrowser
brew_install docker
brew_install docker-compose
brew_install colima
echo "✅ CLI tools ready"
# ============================================
# GUI Applications
# ============================================
echo "🖥️ Installing applications..."
brew_install_cask rectangle
brew_install_cask telegram
brew_install_cask visual-studio-code
brew_install_cask google-chrome
brew_install_cask postman
echo "✅ Applications ready"
# ============================================
# Vim Settings
# ============================================
echo "📝 Setting up Vim..."
mkdir -p ~/.vim/colors
curl -fsSL https://raw.githubusercontent.com/Clsan/setup/master/.vimrc -o ~/.vimrc
curl -fsSL https://raw.githubusercontent.com/morhetz/gruvbox/master/colors/gruvbox.vim -o ~/.vim/colors/gruvbox.vim
echo "✅ Vim ready"
# ============================================
# mise (Runtime Version Manager)
# ============================================
echo "🔄 Checking mise..."
brew_install mise
add_to_zshrc 'eval "$(mise activate zsh)"'
eval "$(mise activate bash)"
echo "🐹 Setting up Go..."
mise use --global go@1.24
echo "📦 Setting up Node.js..."
mise use --global node@lts
echo "☕ Setting up Java..."
mise use --global java@corretto-8
mise use --global java@corretto-17
echo "🏗️ Setting up Gradle..."
mise use --global gradle@8.7
echo "✅ mise and runtimes ready"
# ============================================
# Python (pyenv + uv)
# ============================================
echo "🐍 Setting up Python..."
brew_install pyenv
brew_install uv
add_to_zshrc 'export PYENV_ROOT="$HOME/.pyenv"'
add_to_zshrc '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"'
add_to_zshrc 'eval "$(pyenv init -)"'
echo "✅ Python tools ready"
# ============================================
# Colima (Docker runtime)
# ============================================
echo "🐳 Checking Colima..."
if colima status 2>&1 | grep -q "not running\|not exist"; then
echo "Starting Colima..."
colima start
fi
echo "✅ Colima ready"
# ============================================
# macOS System Settings
# ============================================
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/system_setup.sh"
# ============================================
# Done!
# ============================================
echo ""
echo "============================================"
echo "🎉 Setup Complete!"
echo "============================================"
echo ""
echo "새 터미널을 열거나: source ~/.zshrc"
echo "설치된 런타임 확인: mise list"
echo ""