fix: use reference colors in transient prompt

This commit is contained in:
Jan De Dobbeleer 2021-11-16 00:26:44 +01:00 committed by Jan De Dobbeleer
parent cb1f48b56a
commit 10d8f5a013

View file

@ -242,6 +242,7 @@ func (e *engine) renderTransientPrompt() string {
Env: e.env,
}
prompt := template.renderPlainContextTemplate(nil)
e.writer.setColors(e.config.TransientPrompt.Background, e.config.TransientPrompt.Foreground)
e.writer.write(e.config.TransientPrompt.Background, e.config.TransientPrompt.Foreground, prompt)
switch e.env.getShellName() {
case zsh: