#!/bin/bash echo "๐Ÿš€ Mac ์ดˆ๊ธฐ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ค์ •์„ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค..." # Homebrew ์„ค์น˜ if ! command -v brew &> /dev/null; then echo "๐Ÿ”ง Homebrew ์„ค์น˜ ์ค‘..." /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)" else echo "โœ… Homebrew ์ด๋ฏธ ์„ค์น˜๋จ" fi brew update # Nerd Fonts tap ์ถ”๊ฐ€ echo "๐Ÿ”  Nerd Fonts tap ์ถ”๊ฐ€..." brew tap homebrew/cask-fonts # iTerm2 ์„ค์น˜ echo "๐Ÿ“ฆ iTerm2 ์„ค์น˜..." brew install --cask iterm2 # Oh My Zsh if [ ! -d "$HOME/.oh-my-zsh" ]; then echo "๐Ÿ“ฆ Oh My Zsh ์„ค์น˜..." sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" fi # ZSH ํ…Œ๋งˆ ๋ฐ ๋ฉ€ํ‹ฐ๋ผ์ธ ํ”„๋กฌํ”„ํŠธ ์„ค์ • echo "๐ŸŽจ ZSH ํ…Œ๋งˆ ๋ฐ ํ”„๋กฌํ”„ํŠธ ์„ค์ •..." sed -i '' 's/^ZSH_THEME=.*/ZSH_THEME="agnoster"/' ~/.zshrc cat << 'EOF' >> ~/.zshrc # agnoster ๋ฉ€ํ‹ฐ๋ผ์ธ ํ”„๋กฌํ”„ํŠธ prompt_context() {} prompt_dir() { prompt_segment blue black '%~' } prompt_newline() { echo "\n$(print_prompt)" } precmd() { prompt_newline } EOF # zsh plugins echo "๐Ÿ”Œ zsh ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜..." brew install zsh-syntax-highlighting echo "source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc brew install zsh-autosuggestions echo "source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc # GUI ์•ฑ ์„ค์น˜ echo "๐Ÿ–ฅ๏ธ GUI ์•ฑ ์„ค์น˜ ์ค‘..." brew install --cask tunnelblick brew install --cask cursor brew install --cask notion brew install --cask discord brew install --cask iina brew install --cask kakao-talk brew install --cask telegram brew install --cask slack brew install --cask google-chrome # D2Coding Nerd Font ์„ค์น˜ echo "๐Ÿ”ค D2Coding Nerd Font ์„ค์น˜..." brew install --cask font-d2coding-nerd-font # iTerm2 ๊ธฐ๋ณธ ํฐํŠธ ์„ค์ • (D2Coding Nerd Font 14pt) echo "โš™๏ธ iTerm2 ๊ธฐ๋ณธ ํฐํŠธ ์„ค์ • (D2Coding Nerd Font 14)..." defaults write com.googlecode.iterm2 "New Bookmarks" -array-add \ ' Normal Font D2Coding Nerd Font 14 name Default ' # zsh ์ ์šฉ echo "๐Ÿ” zsh ์„ค์ • ์ ์šฉ ์ค‘..." source ~/.zshrc echo "" echo "๐ŸŽ‰ ๋ชจ๋“  Mac ์ดˆ๊ธฐ ์„ค์ •์ด ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค!" echo "๐Ÿ’ก iTerm2 > Settings > Profiles > Text ํƒญ์—์„œ ํฐํŠธ๊ฐ€ 'D2Coding Nerd Font'๋กœ ์„ค์ •๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜์„ธ์š”."