# Oh My Zsh Robbyrussell Oh-My-Zsh robbyrussell theme replica with iconic arrow prompt, Git status indicators, and directory path for seamless Claude Code shell integration. --- ## Metadata **Title:** Oh My Zsh Robbyrussell **Category:** statuslines **Author:** JSONbored **Added:** October 2025 **Tags:** oh-my-zsh, robbyrussell, zsh, shell-replica, git-integration, classic **URL:** https://claudepro.directory/statuslines/oh-my-zsh-robbyrussell ## Overview Oh-My-Zsh robbyrussell theme replica with iconic arrow prompt, Git status indicators, and directory path for seamless Claude Code shell integration. ## Content #!/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="\[38;5;51m" # Cyan for arrow and directory GREEN="\[38;5;82m" # Green for clean git YELLOW="\[38;5;226m" # Yellow for dirty git RED="\[38;5;196m" # Red for dirty indicator RESET="\[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:(${gitbranch})${RESET} ${RED}${gitdirty}${RESET} " else prompt+="${GREEN}git:(${git_branch})${RESET} " fi fi ADD MODEL INFO (CLAUDE CODE SPECIFIC) prompt+="${CYAN}[${model}]${RESET}" echo -e "$prompt" KEY FEATURES ? Authentic Oh-My-Zsh robbyrussell theme aesthetics ? Iconic ➜ arrow prompt character ? Git branch display with parentheses format: git:(branch) ? Dirty/clean Git status indicators (✗ for uncommitted changes) ? Color-coded Git status: green (clean), yellow/red (dirty) ? Directory basename display (matches zsh %c behavior) ? Model name integration for Claude Code context ? Zero dependencies beyond Git and jq CONFIGURATION Format: bash Refresh Interval: 500ms Position: left Color Scheme: oh-my-zsh-robbyrussell USE CASES ? Oh-My-Zsh users wanting familiar prompt in Claude Code ? Developers switching between shell and AI assistant frequently ? Teams standardized on robbyrussell theme across tools ? Visual continuity between terminal prompt and Claude statusline ? Muscle memory from zsh prompt for instant context recognition TROUBLESHOOTING 1) Arrow character (➜) showing as box or question mark Solution: 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). 2) Git status always showing dirty (✗) even with clean repo Solution: Check Git status manually: git status. Verify git diff commands work: git diff --quiet && echo clean. Ensure .gitignore not excluding modified files. Clear Git cache: git rm -r --cached . && git add . 3) Directory showing full path instead of basename only Solution: Verify basename command available: which basename. Check sed command working: echo ~/foo/bar | sed 's|'$HOME'|~|' | xargs basename (should show 'bar'). Test jq extraction: jq -r .workspace.path. 4) Colors incorrect or showing different shades than Oh-My-Zsh Solution: Oh-My-Zsh uses -color codes. Verify terminal: tput colors (should be ). Compare: echo -e '\[38;5;51mCyan\[0m' with zsh prompt. Adjust color codes if terminal palette differs. 5) Git branch not detected despite being in repository Solution: Check Git installed and in PATH: git --version. Verify in repo: git rev-parse --git-dir. Ensure script can execute git: which git. Test branch detection: git rev-parse --abbrev-ref HEAD TECHNICAL DETAILS Documentation: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes#robbyrussell PREVIEW ➜ my-project git:(main) ✗ [claude-sonnet-4.5] --- Source: Claude Pro Directory Website: https://claudepro.directory URL: https://claudepro.directory/statuslines/oh-my-zsh-robbyrussell This content is optimized for Large Language Models (LLMs). For full formatting and interactive features, visit the website.