Install command
Not provided
A Claude Code statusline that recreates the Oh My Zsh robbyrussell theme: the cyan ➜ arrow, the working-directory basename, and git:(branch) with a red ✗ when the tree is dirty, plus the active model name. A bash script parses the status JSON with jq.
Open the source and read safety notes before installing.
Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.
Decision playbook
Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.
0
78
—
No baseline selected
No major trust-signal divergence detected in the current selection.
Confirm ownership and provenance before trusting install instructions.
Source link availableRequired
Open the canonical repository and verify ownership.
Source provenance statusRequired
Marked as source-backed.
Metadata reviewed
Registry metadata indicates a reviewed listing.
Validate risk disclosures before installation or API wiring.
Safety notes presentRequired
Review the listed safety guidance before running commands.
Privacy notes presentRequired
Review data handling notes before connecting accounts or secrets.
Trust level risk gateRequired
Trust level does not block evaluation.
Check package metadata and artifact integrity signals.
Install payload available
Install or copy payload is available for review.
Package verification flag
No package verification flag provided.
Checksum metadata
No checksum provided for downloaded artifact.
Use compare context to validate trade-offs before adoption.
Compare tray has multiple entries
Add at least one more entry to compare trust differences.
Baseline comparison available
No baseline peer selected yet.
Diverging trust signals identified
No major trust-signal divergence found.
Setup at a glance
Copy-ready — paste the snippet to get started.
Install command
Not provided
Config snippet
Provided
Copy snippet
Provided
Prerequisites
6 to clear
Platforms
1 listed
Difficulty
3/100
Adoption plan
Current risk score 16/100. Use staged verification before broader rollout.
Validate source and review signals before any execution.
Confirm source provenanceRequired
Source URL/provenance metadata is present.
Confirm metadata review state
Listing has review metadata.
Verify install payload
Install/config payload exists and can be inspected.
Confirm safety, privacy, and package integrity signals.
Review safety notesRequired
Safety notes are present.
Review privacy notesRequired
Privacy notes are present.
Verify package integrity metadata
No package verification/checksum metadata.
Adopt in controlled steps based on the selected plan.
Run in isolated sandbox firstRequired
Use a constrained sandbox and observe behavior across multiple tasks.
Roll out graduallyRequired
Roll out to a small cohort before wider usage.
Set monitoring and fallback
Define rollback path and monitor errors after adoption.
Evidence readiness
Required evidence gates are covered (5/6 signals complete).
Source repository/provenance is listed.
Required in this preset
Review metadata is present.
Required in this preset
Safety notes are present.
Required in this preset
Privacy notes are present.
Optional in this preset
Package integrity metadata is missing.
Optional in this preset
Install payload is available.
Required in this preset
Required evidence gates are covered for this preset.
Decision timeline
5/6 steps complete with no blocking gaps for this preset.
triage
Source/provenance metadata is available.
triage
Review metadata is available.
verify
Safety notes are available.
verify
Privacy notes are available.
verify
Package integrity metadata is missing.
rollout
Install payload is available.
No required blockers for this timeline preset.
Prerequisite readiness
6 prerequisites to line up before setup.
Safety & privacy surface
1 safety and 1 privacy notes across 2 risk areas. Review closely: credentials & tokens, network access.
#!/usr/bin/env bash
# Oh-My-Zsh Robbyrussell Theme Replica for Claude Code
# Classic robbyrussell prompt: ➜ directory git:(branch) ✗
# Read JSON from stdin
read -r input
# Extract values
dir=$(echo "$input" | jq -r '.workspace.path // "~"' | sed "s|$HOME|~|" | xargs basename)
model=$(echo "$input" | jq -r '.model // "unknown"')
# Git status
git_branch=""
git_dirty=""
if git rev-parse --git-dir > /dev/null 2>&1; then
git_branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
# Check for uncommitted changes
if ! git diff --quiet 2>/dev/null || ! git diff --cached --quiet 2>/dev/null; then
git_dirty="✗"
fi
fi
# Colors (robbyrussell classic palette)
CYAN="\033[38;5;51m" # Cyan for arrow and directory
GREEN="\033[38;5;82m" # Green for clean git
YELLOW="\033[38;5;226m" # Yellow for dirty git
RED="\033[38;5;196m" # Red for dirty indicator
RESET="\033[0m"
# Build prompt (robbyrussell style)
prompt="${CYAN}➜${RESET} "
prompt+="${CYAN}${dir}${RESET} "
if [ -n "$git_branch" ]; then
if [ -n "$git_dirty" ]; then
prompt+="${YELLOW}git:(${git_branch})${RESET} ${RED}${git_dirty}${RESET} "
else
prompt+="${GREEN}git:(${git_branch})${RESET} "
fi
fi
# Add model info (Claude Code specific)
prompt+="${CYAN}[${model}]${RESET}"
echo -e "$prompt"{
"statusLine": {
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/oh-my-zsh-robbyrussell.sh",
"refreshInterval": 500
}
}{
"statusLine": {
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/oh-my-zsh-robbyrussell.sh",
"refreshInterval": 500
}
}
Extended version with exit status indicator matching original robbyrussell theme
#!/usr/bin/env bash
# Enhanced Oh-My-Zsh Robbyrussell Theme with Exit Status
read -r input
# Extract exit status from previous command (if available)
last_exit_status=${LAST_EXIT_STATUS:-0}
dir=$(echo "$input" | jq -r '.workspace.current_dir // .workspace.path // .cwd // "~"' | sed "s|$HOME|~|" | xargs basename)
model=$(echo "$input" | jq -r '.model.display_name // .model.id // "unknown"')
git_branch=""
git_dirty=""
if git rev-parse --git-dir > /dev/null 2>&1; then
git_branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")
if ! git diff --quiet 2>/dev/null || ! git diff --cached --quiet 2>/dev/null; then
git_dirty="✗"
fi
fi
# Colors
CYAN="\033[38;5;51m"
GREEN="\033[38;5;82m"
YELLOW="\033[38;5;226m"
RED="\033[38;5;196m"
BOLD_GREEN="\033[1;38;5;82m"
BOLD_RED="\033[1;38;5;196m"
RESET="\033[0m"
# Arrow color based on exit status (robbyrussell style)
if [ $last_exit_status -eq 0 ]; then
arrow_color="${BOLD_GREEN}"
else
arrow_color="${BOLD_RED}"
fi
# Build prompt
prompt="${arrow_color}➜${RESET} "
prompt+="${CYAN}${dir}${RESET} "
if [ -n "$git_branch" ]; then
if [ -n "$git_dirty" ]; then
prompt+="${YELLOW}git:(${git_branch})${RESET} ${RED}${git_dirty}${RESET} "
else
prompt+="${GREEN}git:(${git_branch})${RESET} "
fi
fi
prompt+="${CYAN}[${model}]${RESET}"
echo -e "$prompt"
Version with configurable directory display (basename vs full path)
#!/usr/bin/env bash
# Oh-My-Zsh Robbyrussell Theme with Full Path Option
read -r input
# Option to show full path (default: basename only, like robbyrussell)
SHOW_FULL_PATH=${ROBBYRUSSELL_FULL_PATH:-false}
dir=$(echo "$input" | jq -r '.workspace.current_dir // .workspace.path // .cwd // "~"' | sed "s|$HOME|~|")
if [ "$SHOW_FULL_PATH" != "true" ]; then
dir=$(basename "$dir")
fi
model=$(echo "$input" | jq -r '.model.display_name // .model.id // "unknown"')
git_branch=""
git_dirty=""
if git rev-parse --git-dir > /dev/null 2>&1; then
git_branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")
if ! git diff --quiet 2>/dev/null || ! git diff --cached --quiet 2>/dev/null; then
git_dirty="✗"
fi
fi
CYAN="\033[38;5;51m"
GREEN="\033[38;5;82m"
YELLOW="\033[38;5;226m"
RED="\033[38;5;196m"
RESET="\033[0m"
prompt="${CYAN}➜${RESET} "
prompt+="${CYAN}${dir}${RESET} "
if [ -n "$git_branch" ]; then
if [ -n "$git_dirty" ]; then
prompt+="${YELLOW}git:(${git_branch})${RESET} ${RED}${git_dirty}${RESET} "
else
prompt+="${GREEN}git:(${git_branch})${RESET} "
fi
fi
prompt+="${CYAN}[${model}]${RESET}"
echo -e "$prompt"
Complete setup script with UTF-8 encoding verification and Unicode arrow character testing
#!/bin/bash
# Installation script for Oh My Zsh Robbyrussell Theme
# Check for jq (required for JSON parsing)
if ! command -v jq &> /dev/null; then
echo "Installing jq for JSON parsing..."
if [[ "$OSTYPE" == "darwin"* ]]; then
brew install jq
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get install -y jq || sudo yum install -y jq
else
echo "Please install jq manually: https://jqlang.github.io/jq/"
fi
fi
# Check for Git (optional, for Git status display)
if ! command -v git &> /dev/null; then
echo "Warning: Git not found - Git status will not be displayed"
echo "Install Git: macOS (brew install git), Linux (sudo apt-get install git or sudo yum install git)"
else
echo "Git command available: $(git --version)"
fi
# Verify UTF-8 encoding
if locale charmap 2>/dev/null | grep -q UTF-8; then
echo "UTF-8 encoding verified"
else
echo "Warning: UTF-8 encoding may not be enabled"
echo "Set with: export LANG=en_US.UTF-8"
fi
# Test Unicode arrow character (➜)
if echo -e '➜' &> /dev/null; then
echo "Unicode arrow character supported: ➜"
else
echo "Warning: Unicode arrow character may not display correctly"
echo "Terminal may need UTF-8 encoding"
fi
# Test Unicode checkmark/X (✗)
if echo -e '✗' &> /dev/null; then
echo "Unicode checkmark/X character supported: ✗"
else
echo "Warning: Unicode checkmark/X character may not display correctly"
fi
# Test basename command
if command -v basename &> /dev/null; then
echo "basename command available"
else
echo "Warning: basename command not found - directory display may not work"
fi
# Create statuslines directory
mkdir -p .claude/statuslines
cat > .claude/statuslines/oh-my-zsh-robbyrussell.sh << 'SCRIPT_EOF'
#!/usr/bin/env bash
# Oh-My-Zsh Robbyrussell Theme Replica for Claude Code
# Classic robbyrussell prompt: ➜ directory git:(branch) ✗
read -r input
dir=$(echo "$input" | jq -r '.workspace.current_dir // .workspace.path // .cwd // "~"' | sed "s|$HOME|~|" | xargs basename)
model=$(echo "$input" | jq -r '.model.display_name // .model.id // "unknown"')
git_branch=""
git_dirty=""
if git rev-parse --git-dir > /dev/null 2>&1; then
git_branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")
if ! git diff --quiet 2>/dev/null || ! git diff --cached --quiet 2>/dev/null; then
git_dirty="✗"
fi
fi
CYAN="\033[38;5;51m"
GREEN="\033[38;5;82m"
YELLOW="\033[38;5;226m"
RED="\033[38;5;196m"
RESET="\033[0m"
prompt="${CYAN}➜${RESET} "
prompt+="${CYAN}${dir}${RESET} "
if [ -n "$git_branch" ]; then
if [ -n "$git_dirty" ]; then
prompt+="${YELLOW}git:(${git_branch})${RESET} ${RED}${git_dirty}${RESET} "
else
prompt+="${GREEN}git:(${git_branch})${RESET} "
fi
fi
prompt+="${CYAN}[${model}]${RESET}"
echo -e "$prompt"
SCRIPT_EOF
chmod +x .claude/statuslines/oh-my-zsh-robbyrussell.sh
# Add to settings.json
if [ ! -f .claude/settings.json ]; then
echo '{"statusLine":{"type":"command","command":"$CLAUDE_PROJECT_DIR/.claude/statuslines/oh-my-zsh-robbyrussell.sh","refreshInterval":500}}' > .claude/settings.json
else
jq '.statusLine = {"type":"command","command":"$CLAUDE_PROJECT_DIR/.claude/statuslines/oh-my-zsh-robbyrussell.sh","refreshInterval":500}' .claude/settings.json > .claude/settings.json.tmp
mv .claude/settings.json.tmp .claude/settings.json
fi
echo "Oh My Zsh Robbyrussell Theme installed successfully!"
echo "Note: Ensure terminal supports UTF-8 encoding for arrow character (➜)"
echo "Test with: echo -e '➜'"
Ensure terminal uses UTF-8 encoding. Check: locale | grep UTF-8. Set if needed: export LANG=en_US.UTF-8. Verify font supports Unicode arrows (U+279C). Test: echo -e '➜'. Verify encoding: locale charmap (should be UTF-8). If not supported, modify script to use ASCII alternative: arrow='>'.
Check Git status manually: git status. Verify git diff commands work: git diff --quiet && echo clean (should return 0 for clean). Check staged changes: git diff --cached --quiet && echo clean. Ensure .gitignore not excluding modified files. Clear Git cache if needed: git rm -r --cached . && git add . (use with caution). Verify Git commands: git rev-parse --abbrev-ref HEAD (should return branch name).
Verify basename command available: which basename. Check sed command working: echo /foo/bar | sed 's|'$HOME'||' | xargs basename (should show 'bar'). Test jq extraction: echo '$input' | jq .workspace.current_dir. Verify xargs: echo 'test' | xargs basename (should return 'test'). Check if path is already basename: basename '/path/to/dir' (should return 'dir').
Oh-My-Zsh uses 256-color codes. Verify terminal: tput colors (should be 256). Compare: echo -e '\033[38;5;51mCyan\033[0m' with zsh prompt. Adjust color codes if terminal palette differs. Check color codes: CYAN='\033[38;5;51m' (should be cyan), GREEN='\033[38;5;82m' (should be green). Test colors: echo -e '\033[38;5;51mTest\033[0m' (should show cyan text).
Check Git installed and in PATH: git --version. Verify in repo: git rev-parse --git-dir (should return .git path). Ensure script can execute git: which git. Test branch detection: git rev-parse --abbrev-ref HEAD (should return branch name). Check for detached HEAD: git rev-parse --abbrev-ref HEAD (may return HEAD if detached). Verify Git directory exists: ls -la .git (should show Git directory).
Check JSON field names: echo '$input' | jq .model.display_name (should return model name). Verify jq extraction: echo '$input' | jq -r '.model.display_name // .model.id // "unknown"'. Check if field exists: echo '$input' | jq 'has("model")'. Verify model field structure: echo '$input' | jq .model (should show object with id/display_name). Update script to check multiple field names if needed.
Verify terminal supports Unicode checkmark/X: echo -e '✗'. If not supported, replace with ASCII: gitdirty='' or gitdirty='X'. Check terminal encoding: locale charmap (should be UTF-8). Set encoding: export LANG=en_US.UTF-8. Test Unicode: echo -e '✗ ✓' (should display symbols). Alternative: Use ASCII characters like '' for dirty status.
Compare with original: Oh-My-Zsh robbyrussell uses '➜ %c git:(branch) ✗'. Verify spacing: prompt should have two spaces after arrow. Check format: '➜ directory git:(branch) ✗ [model]'. Verify color order: arrow (cyan), directory (cyan), git (green/yellow), dirty (red), model (cyan). Test full prompt: echo -e '\033[38;5;51m➜\033[0m \033[38;5;51mdir\033[0m \033[38;5;82mgit:(main)\033[0m'.
Show that Oh My Zsh Robbyrussell - Statuslines is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.
[](https://heyclau.de/entry/statuslines/oh-my-zsh-robbyrussell)Oh My Zsh Robbyrussell - Statuslines side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | A Claude Code statusline that recreates the Oh My Zsh robbyrussell theme: the cyan ➜ arrow, the working-directory basename, and git:(branch) with a red ✗ when the tree is dirty, plus the active model name. A bash script parses the status JSON with jq. Open dossier | Soothing Catppuccin Mocha theme statusline with 26 pastel colors, Powerline separators, and modular segments for Git, model info, and token tracking. Open dossier | Starship-inspired powerline statusline with Nerd Font glyphs, modular segments, and Git integration for Claude Code Open dossier | WCAG-compliant accessible statusline with screen reader announcements, high-contrast colors, semantic labels, keyboard hints, and reduced motion support. Open dossier |
|---|---|---|---|---|
| Next steps | ||||
| Trust | ||||
| Review status | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed |
| Package trust | Package not verified | Package not verified | Package not verified | Package not verified |
| Source provenance | Source-backed | Source-backed | Source-backed | Source-backed |
| Submitter | — | — | — | — |
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Brand | — | — | — | — |
| Category | statuslines | statuslines | statuslines | statuslines |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | JSONbored | JSONbored | JSONbored | JSONbored |
| Added | 2025-10-23 | 2025-10-23 | 2025-10-16 | 2025-10-23 |
| Platforms | Claude Code | Claude Code | Claude Code | Claude Code |
| Source repo | — | — | — | — |
| Safety notes | ✓Runs as a Claude Code statusline command on every refresh and depends on the local shell environment; a failure only affects status rendering, not your session. | ✓Runs as a Claude Code statusline command on every refresh and depends on the local shell environment; a failure only affects status rendering, not your session. | ✓Runs as a Claude Code statusline command on every refresh and depends on the local shell environment; a failure only affects status rendering, not your session. | ✓Runs as a Claude Code statusline command on every refresh and depends on the local shell environment; a failure only affects status rendering, not your session. |
| Privacy notes | ✓The script reads the workspace path, git branch, and dirty state from the Claude Code status JSON and your local repository to render the prompt; it only prints to your terminal and sends nothing over the network. | ✓Reads the Claude Code statusline JSON from stdin (model, workspace path, token usage) and renders it in the local terminal; it does not send data off-machine. | ✓Reads the Claude Code statusline JSON from stdin (model, workspace path, token usage) and renders it in the local terminal; it does not send data off-machine. | ✓Reads the Claude Code statusline JSON from stdin (model, workspace path, token usage) and renders it in the local terminal; it does not send data off-machine. |
| Prerequisites |
|
|
|
|
| Install | — | — | — | — |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.