-
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 [email protected]
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 [email protected]
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 ""