메뉴 여닫기
개인 메뉴 토글
로그인하지 않음
만약 지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

Mac 터미널 완벽 세팅 (Ghostty + Starship + AI 코딩 환경)

데브카페

맥(Mac) 터미널 완벽 세팅 (Ghostty + Starship + AI 코딩 환경)

주요 패키지를 한 번에 설치하는 초기 전개

#!/bin/bash
set -euo pipefail

echo "🚀 Mac 터미널 기본 패키지 설치를 시작합니다..."

# ============================================
# 1. 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)"
fi

# ============================================
# 2. Ghostty 설치
# ============================================
echo "👻 Ghostty 설치 중..."
brew install --cask ghostty

# ============================================
# 3. 폰트 설치
# ============================================
echo "🔤 폰트 설치 중..."
brew install --cask font-hack-nerd-font
brew install --cask font-noto-sans-cjk-kr

# ============================================
# 4. CLI 도구 설치
# ============================================
echo "🛠️ CLI 도구 설치 중..."
brew install lsd bat fzf fd ripgrep git-delta btop dust duf fastfetch neovim
brew install zoxide lazygit navi starship mise
brew install gemini-cli

# ============================================
# 5. 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)" "" --unattended
fi

# ============================================
# 6. Zinit 설치
# ============================================
if [ ! -d "$HOME/.local/share/zinit/zinit.git" ]; then
  echo "🔌 Zinit 설치 중..."
  mkdir -p "$HOME/.local/share/zinit"
  git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git"
fi

# ============================================
# 7. SCM Breeze 설치
# ============================================
if [ ! -d "$HOME/.scm_breeze" ]; then
  echo "🌿 SCM Breeze 설치 중..."
  git clone https://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze
  ~/.scm_breeze/install.sh
fi

# ============================================
# 8. Node.js 설치 (AI 도구용)
# ============================================
echo "📐 mise로 Node.js 설치 중..."
eval "$(mise activate bash)"
mise use --global node@24

# ============================================
# 9. AI 도구 설치
# ============================================
echo "🤖 AI 코딩 도구 설치 중..."

# Claude Code
if ! command -v claude &>/dev/null; then
  curl -fsSL https://claude.ai/install.sh | bash
fi

# Codex CLI
if ! command -v codex &>/dev/null; then
  npm install -g @openai/codex
fi

echo ""
echo "✅ 기본 패키지 설치가 완료되었습니다!"
echo "👉 이제 아래 설정 파일(ghostty, starship, .zshrc)을 적용하세요."
echo "👉 첫 실행 인증: claude / codex / gemini"

Ghostty 터미널

Ghostty 는 Zigrog로 만들어진 GPU 가속 터미널입니다.

  • 설치
brew install --cask ghostty
  • 설정 파일
~/.config/ghostty/config파일을 생성합니다.
  • 하단 설정은 Hack Nerd Font Mono기본 글꼴로 사용하고, 한글 fallback용으로 Noto Sans CJK KR추가한 구성입니다.

한글 fallback이 필요합니다. 두 번째 font-family줄은 제거해야 합니다.

 ~/.config/ghostty/config
# Ghostty Configuration - Dark Modern (Catppuccin Mocha)

# Theme
theme = Catppuccin Mocha

# Font
font-family = "Hack Nerd Font Mono"
font-family = "Noto Sans CJK KR"

# Window
window-padding-x = 12
window-padding-y = 10
window-decoration = true
macos-titlebar-style = tabs

# Background (반투명 + 블러)
background-opacity = 0.9
background-blur-radius = 20

# Autosuggestion color (가독성을 위해 밝게)
palette = 8=#7f849c

# Cursor
cursor-style = block
cursor-style-blink = false

# Mouse
mouse-hide-while-typing = true

# Clipboard
copy-on-select = true
clipboard-paste-protection = false

# Scrollback
scrollback-limit = 10000

# macOS
macos-option-as-alt = true

# Shell Integration
shell-integration = zsh
shell-integration-features = cursor,sudo,title

# Keybindings - Split/Tab
keybind = cmd+d=new_split:right
keybind = cmd+shift+d=new_split:down
keybind = cmd+w=close_surface
keybind = cmd+alt+left=goto_split:left
keybind = cmd+alt+right=goto_split:right
keybind = cmd+alt+up=goto_split:top
keybind = cmd+alt+down=goto_split:bottom
EOF


  • 핵심설정 설명:
설정 설명
theme = Catppuccin Mocha 부드러운 판타지 테마
background-opacity = 0.9 10% 투명한 도로 배경이 살짝 비침
background-blur-radius = 20 투명 배경에 블러 효과
macos-titlebar-style = tabs macOS가 탭 스타일을 사용하지 않았습니다.
macos-option-as-alt = true Option 키를 Alt로 사용
cmd+d/cmd+shift+d 가운데/수평 부분

출처 : https://blog.dnd.ac/settings-mac-terminal-2026/