nugawiki

./categories/os

macOS zsh·Oh My Zsh·iTerm2

업데이트 2026-07-21 조회수

설치

brew install zsh curl
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
brew install --cask iterm2

~/.zshrc

ZSH_THEME="agnoster"
# hostname 숨김
prompt_context() {
  if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
    prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
  fi
}
source ~/.zshrc

iTerm2

  • Cmd + , → Profiles → Text: D2Coding 등 고정폭 폰트
  • Colors → Color Presets → Import로 스키마 적용

./comments