Open sbliven opened 2 years ago
I'm using the following workaround:
def _color_patch():
"""Attempt to fix gitstatus__pl_colors bug
https://github.com/jnoortheen/xontrib-powerline3/issues/10
Needs to be added to $PROMPT after {gitstatus}
"""
__xonsh__.env['PROMPT_FIELDS']["gitstatus__pl_colors"] = (DARK_GREY, "GREEN")
return ""
$PROMPT_FIELDS["color_patch"] = _color_patch
$PROMPT += "{color_patch}"
Make sure {color_patch}
comes after {gitstatus}
in $PROMPT
Are you loading the xontrib before these env variables definitions?
I am trying to change the color of the 'gitstatus' part of my prompt. In my .xonshrc I have
However when I open a new shell I see
Setting the field directly in the new shell successfully changes the color. Thus it seems like some part of the powershell3 initialization is overriding my xonshrc value.