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.

╭─ ❯ theo@MacBook-Pro ❯ ~/dev/apple-userhost-zsh-theme [main]
╰─ $
❯(apple) and the╭─/╰─bars: whiteuser@hostname: blue (256-color39), bold- path (
%~): orange (256-color208), bold - git status (
[branch+]): green
Installation
-
Copy (or symlink)
apple-userhost.zsh-themeinto$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" -
In
~/.zshrc, set the theme:ZSH_THEME="apple-userhost" -
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:
| Variable | Element | Default |
|---|---|---|
APPLE_COLOR | apple ❯ | white |
USER_COLOR | user (before the @) | 39 (blue) |
HOST_COLOR | hostname (after the @) | 39 (blue) |
AT_COLOR | the @ | white |
CHEVRON_COLOR | the ❯ after the host | white |
PATH_COLOR | the current path (%~) | 208 (orange) |
BAR_COLOR | the ╭─ / ╰─ bars | white |
GIT_COLOR | git status [branch+] | green |
256-color table: for i in {0..255}; do print -Pn "%F{$i}%3d %f" $i; (( (i+1) % 16 )) || print; done