apple-userhost

August 19, 2026 · View on GitHub

A custom Oh My Zsh theme: a 2-line prompt with an apple icon, user@hostname, path, and git status.

preview

╭─  ❯ theo@MacBook-Pro ❯ ~/dev/apple-userhost-zsh-theme [main]
╰─ $
  • (apple) and the ╭─/╰─ bars: white
  • user@hostname: blue (256-color 39), bold
  • path (%~): orange (256-color 208), bold
  • git status ([branch+]): green

Installation

  1. Copy (or symlink) apple-userhost.zsh-theme into $ZSH_CUSTOM/themes/:

    ln -s /path/to/apple-userhost-zsh-theme/apple-userhost.zsh-theme \
          "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/apple-userhost.zsh-theme"
    
  2. In ~/.zshrc, set the theme:

    ZSH_THEME="apple-userhost"
    
  3. Reload your shell: source ~/.zshrc.

Customizing colors

Every element has its own variable at the top of apple-userhost.zsh-theme — just change the value (color name or 256-color code) and reload your shell:

VariableElementDefault
APPLE_COLORapple white
USER_COLORuser (before the @)39 (blue)
HOST_COLORhostname (after the @)39 (blue)
AT_COLORthe @white
CHEVRON_COLORthe after the hostwhite
PATH_COLORthe current path (%~)208 (orange)
BAR_COLORthe ╭─ / ╰─ barswhite
GIT_COLORgit status [branch+]green

256-color table: for i in {0..255}; do print -Pn "%F{$i}%3d %f" $i; (( (i+1) % 16 )) || print; done