Skip to content

Commit 35ac0a8

Browse files
fix(theme): robbyrussell arrow turns red on command failure (#7440)
Add foreground_templates to the arrow segment so it turns red (#E06C75) when the previous command exits with a non-zero code, matching the original oh-my-zsh robbyrussell behavior. Fixes #7426 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8de2d5d commit 35ac0a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

themes/robbyrussell.omp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"segments": [
77
{
88
"foreground": "#98C379",
9+
"foreground_templates": ["{{ if gt .Code 0 }}#E06C75{{ end }}"],
910
"style": "plain",
1011
"template": "\u279c",
1112
"type": "text"

0 commit comments

Comments
 (0)