site logo
Published on

Developer's Mac Setup Guide 2025 - 개발자를 위한 맥 완벽 세팅

Authors
  • avatar
    Name
    디지털 매뉴얼
    Twitter

Mac, 개발자의 최고의 동반자

Mac은 Unix 기반의 안정성과 뛰어난 사용자 경험으로 개발자들에게 사랑받는 플랫폼입니다. 이 가이드는 2025년 최신 macOS와 Apple Silicon에 최적화된 개발 환경 구축의 모든 것을 다룹니다.

🚀 1단계: 초기 시스템 설정

macOS 기본 설정 최적화

개발자를 위한 시스템 설정

# 숨김 파일 표시
defaults write com.apple.finder AppleShowAllFiles YES

# 파일 확장자 항상 표시
defaults write NSGlobalDomain AppleShowAllExtensions -bool true

# 스크린샷 저장 위치 변경
mkdir ~/Screenshots
defaults write com.apple.screencapture location ~/Screenshots

# Dock 자동 숨김 가속
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.5

# Finder 재시작
killall Finder

키보드 & 트랙패드 최적화

  • 키 반복 속도: 최대
  • 반복 지연 시간: 최소
  • 트랙패드 속도: 빠름
  • 3손가락 드래그 활성화

보안 설정

필수 보안 체크리스트

  • FileVault 활성화 (디스크 암호화)
  • 방화벽 켜기
  • 자동 로그인 비활성화
  • Touch ID/Face ID 설정
  • 2FA 모든 계정 적용

🛠️ 2단계: 필수 개발 도구

Homebrew - 패키지 관리자

설치 및 설정

# Homebrew 설치
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Apple Silicon Mac 경로 설정
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

# 필수 패키지 설치
brew install git wget curl htop tree jq

Brewfile로 일괄 설치

# Brewfile
tap "homebrew/cask"
tap "homebrew/cask-fonts"

# 개발 도구
brew "git"
brew "node"
brew "python"
brew "go"
brew "rust"
brew "docker"

# 유틸리티
brew "fzf"
brew "ripgrep"
brew "bat"
brew "exa"
brew "gh"

# 앱
cask "visual-studio-code"
cask "iterm2"
cask "rectangle"
cask "alfred"

터미널 환경 구축

iTerm2 + Oh My Zsh

# Oh My Zsh 설치
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# Powerlevel10k 테마
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

# 플러그인 설치
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

.zshrc 설정

# ~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"

plugins=(
    git
    docker
    kubectl
    zsh-autosuggestions
    zsh-syntax-highlighting
    fzf
)

# 별칭
alias ll="exa -la"
alias cat="bat"
alias find="fd"
alias grep="rg"

# 환경 변수
export EDITOR="code"
export PATH="/opt/homebrew/bin:$PATH"

💻 3단계: IDE & 에디터 설정

VS Code 최적화

Finder에서 VS Code로 열기 (Automator)

  1. Automator 실행 → Quick Action 생성
  2. "Workflow receives current" → "files or folders" in "Finder"
  3. Run Shell Script 추가:
    open -n -b "com.microsoft.VSCode" --args "$*"
    
  4. "Open in VS Code"로 저장

필수 확장 프로그램

{
  "recommendations": [
    // 언어별
    "ms-python.python",
    "golang.go",
    "rust-lang.rust-analyzer",
    "ms-vscode.cpptools",

    // 생산성
    "GitHub.copilot",
    "eamodio.gitlens",
    "ms-azuretools.vscode-docker",
    "ms-kubernetes-tools.vscode-kubernetes-tools",

    // 테마 & UI
    "dracula-theme.theme-dracula",
    "PKief.material-icon-theme",

    // 유틸리티
    "streetsidesoftware.code-spell-checker",
    "wayou.vscode-todo-highlight",
    "usernamehw.errorlens"
  ]
}

settings.json 최적화

{
  "editor.fontSize": 14,
  "editor.fontFamily": "JetBrains Mono, Menlo, Monaco",
  "editor.fontLigatures": true,
  "editor.minimap.enabled": false,
  "editor.renderWhitespace": "boundary",
  "editor.formatOnSave": true,
  "editor.bracketPairColorization.enabled": true,
  "terminal.integrated.fontSize": 13,
  "workbench.colorTheme": "Dracula",
  "workbench.iconTheme": "material-icon-theme"
}

기타 개발 도구

JetBrains Toolbox

brew install --cask jetbrains-toolbox
  • IntelliJ IDEA (Java/Kotlin)
  • PyCharm (Python)
  • WebStorm (JavaScript)
  • GoLand (Go)

🐳 4단계: 컨테이너 & 가상화

Docker Desktop 대안 (2025)

OrbStack (추천)

brew install --cask orbstack

장점:

  • Docker Desktop보다 2배 빠름
  • 메모리 사용량 50% 감소
  • M1/M2/M3 네이티브 지원

Colima

brew install colima docker docker-compose
colima start --cpu 4 --memory 8

가상머신 설정

무료 VM 솔루션

  1. UTM (Apple Silicon 최적화)

    brew install --cask utm
    
  2. VirtualBox (Intel Mac)

    brew install --cask virtualbox
    
  3. Multipass (Ubuntu 전용)

    brew install --cask multipass
    

🔧 5단계: 개발 환경별 설정

웹 개발

Node.js 환경

# NVM으로 Node 버전 관리
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

# 최신 LTS 설치
nvm install --lts
nvm use --lts

# 글로벌 패키지
npm install -g yarn pnpm typescript ts-node nodemon

Python 개발

pyenv + Poetry

# pyenv 설치
brew install pyenv

# Python 설치
pyenv install 3.12.0
pyenv global 3.12.0

# Poetry 설치
curl -sSL https://install.python-poetry.org | python3 -

Go 개발

Go 환경 설정

# Go 설치
brew install go

# 환경 변수
echo 'export GOPATH=$HOME/go' >> ~/.zshrc
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.zshrc

모바일 개발

iOS 개발

# Xcode 설치 (App Store)
# CocoaPods
sudo gem install cocoapods

# Fastlane
brew install fastlane

Flutter 개발

# Flutter SDK
brew install --cask flutter

# 의존성
brew install --cask android-studio
flutter doctor

📊 6단계: 생산성 도구

필수 생산성 앱

무료 도구

용도설치
Rectangle창 관리brew install --cask rectangle
Alfred런처brew install --cask alfred
RaycastAI 런처brew install --cask raycast
Hidden Bar메뉴바 정리brew install --cask hiddenbar

유료 도구 (추천)

  • BetterTouchTool: 제스처 커스터마이징
  • Dash: API 문서 브라우저
  • TablePlus: DB 클라이언트
  • Proxyman: HTTP 디버깅

Git 워크플로우

Git 설정

# 기본 설정
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
git config --global init.defaultBranch main

# 유용한 별칭
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.lg "log --oneline --graph --all"

GitHub CLI

# 설치
brew install gh

# 인증
gh auth login

# 유용한 명령어
gh repo create
gh pr create
gh issue list

🎯 7단계: 성능 최적화

Apple Silicon 최적화

네이티브 앱 확인

# Rosetta 2 사용 앱 확인
/usr/bin/file /Applications/*/Contents/MacOS/* | grep -v "arm64"

메모리 관리

# 메모리 압력 확인
memory_pressure

# DNS 캐시 정리
sudo dscacheutil -flushcache

개발 성능 향상

빌드 속도 개선

# Xcode 빌드 병렬화
defaults write com.apple.dt.Xcode BuildSystemScheduleInherentlyParallelCommandsExclusively -bool YES

# npm/yarn 캐시 최적화
npm config set cache ~/.npm --global
yarn config set cache-folder ~/.yarn-cache

🔒 8단계: 보안 & 백업

개발 환경 보안

SSH 키 관리

# Ed25519 키 생성 (추천)
ssh-keygen -t ed25519 -C "your_email@example.com"

# SSH 에이전트 추가
eval "$(ssh-agent -s)"
ssh-add --apple-use-keychain ~/.ssh/id_ed25519

시크릿 관리

# 1Password CLI
brew install --cask 1password-cli

# AWS Vault
brew install aws-vault

# direnv (환경변수 관리)
brew install direnv

백업 전략

Time Machine 설정

  • 외장 SSD 2TB+ 권장
  • 개발 폴더 제외:
    • node_modules
    • .git (대용량 리포)
    • 빌드 아티팩트

Dotfiles 관리

# dotfiles 리포지토리 생성
git init --bare $HOME/.dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no

💡 프로 팁

단축키 마스터

Cmd + Space: Spotlight/Raycast
Cmd + `: 동일 앱 창 전환
Cmd + Shift + .: 숨김 파일 토글
Cmd + K: 터미널 클리어
Option + Click: 다중 커서 (VS Code)

디버깅 도구

  1. Charles Proxy: HTTP/HTTPS 디버깅
  2. Wireshark: 네트워크 패킷 분석
  3. Console.app: 시스템 로그
  4. Activity Monitor: 프로세스 관리

📈 성능 모니터링

시스템 모니터링

# htop 대신 btop (더 예쁨)
brew install btop

# 디스크 사용량
brew install ncdu

# 네트워크 모니터링
brew install bandwhich

🎓 학습 리소스

추천 리소스

  1. dotfiles 예제: github.com/mathiasbynens/dotfiles
  2. Awesome Mac: github.com/jaywcjlove/awesome-mac
  3. macOS Setup: sourabhbajaj.com/mac-setup

결론

Mac은 개발자에게 최고의 도구입니다. 이 가이드의 설정을 적용하면:

  1. 개발 속도 50% 향상
  2. 시스템 안정성 확보
  3. 팀 협업 효율 증대

시작하기:

  • 오늘: Homebrew 설치 & 기본 도구
  • 이번 주: 터미널 & VS Code 설정
  • 이번 달: 전체 환경 최적화

Mac과 함께 최고의 개발자가 되세요!


관련 글