Skip to content

Commit bb6a680

Browse files
seefoodclaude
andcommitted
fix(themes/powerline): restore POWERLINE_PROMPT_FOREGROUND_COLOR support
The cleanup in #2360 overwrote the fix from #2231, causing POWERLINE_PROMPT_FOREGROUND_COLOR to be ignored. Restore the variable with a safe default of '-' (no override) so existing setups are unaffected while still allowing foreground color customization. Fixes #2374 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 854c4ee commit bb6a680

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

themes/powerline-plain/powerline-plain.base.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function __powerline_left_segment {
2626
fi
2727
fi
2828

29-
LEFT_PROMPT+="$(set_color - "${params[1]}")${pad_before_segment}${params[0]}${normal?}"
29+
LEFT_PROMPT+="$(set_color "${POWERLINE_PROMPT_FOREGROUND_COLOR:--}" "${params[1]}")${pad_before_segment}${params[0]}${normal?}"
3030
LAST_SEGMENT_COLOR=${params[1]}
3131
((SEGMENTS_AT_LEFT += 1))
3232
}

themes/powerline/powerline.base.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ function __powerline_left_segment() {
268268
fi
269269
fi
270270

271-
#change here to cahnge fg color
272-
LEFT_PROMPT+="$(set_color - "${params[1]:-}")${pad_before_segment}${params[0]}${normal?}"
271+
#change here to change fg color
272+
LEFT_PROMPT+="$(set_color "${POWERLINE_PROMPT_FOREGROUND_COLOR:--}" "${params[1]:-}")${pad_before_segment}${params[0]}${normal?}"
273273
#seperator char color == current bg
274274
LAST_SEGMENT_COLOR="${params[1]:-}"
275275
((SEGMENTS_AT_LEFT += 1))

0 commit comments

Comments
 (0)