A beautiful status line for Claude Code that mimics the popular robbyrussell Oh My Zsh theme.
- π€ Robot emoji prefix
- Bold green arrow (β)
- Cyan directory name
- Git branch information with bold blue prefix and red branch name
- Exact color matching to robbyrussell theme
When in a git repository:
π€ β project git:(main)
When not in a git repository:
π€ β project
curl -fsSL https://gist.githubusercontent.com/Selrahcd/71cbc0637525b04bdce17fbe36d812ac/raw/install.sh | bash- Create the
.claudedirectory if it doesn't exist:
mkdir -p ~/.claude- Download the status line script:
curl -o ~/.claude/statusline.sh https://gist.githubusercontent.com/Selrahcd/71cbc0637525b04bdce17fbe36d812ac/raw/statusline.sh
chmod +x ~/.claude/statusline.sh- Update your Claude Code settings:
Open ~/.claude/settings.json and add or update the statusLine configuration:
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"padding": 0
}
}If you don't have a settings.json file yet, create it with:
cat > ~/.claude/settings.json << 'EOF'
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"padding": 0
}
}
EOFjq- JSON processor (used to parse Claude Code's JSON input)git- For displaying branch information
Install jq if you don't have it:
macOS:
brew install jqLinux (Debian/Ubuntu):
sudo apt-get install jqLinux (Fedora):
sudo dnf install jqYou can customize the colors by editing ~/.claude/statusline.sh. The color codes used are:
\033[1;32m- Bold Green (arrow)\033[0;36m- Cyan (directory)\033[1;34m- Bold Blue (git prefix)\033[0;31m- Red (branch name)\033[0;33m- Yellow (not currently used)\033[0;35m- Magenta (not currently used)
To remove the status line:
- Delete the script:
rm ~/.claude/statusline.sh- Remove or comment out the
statusLineconfiguration in~/.claude/settings.json
MIT
Inspired by the robbyrussell Oh My Zsh theme