Skip to content

return_code Segment

Description

This segment show the exit code of the previous command.

This segment is shown only if this exit code is not 0.

Requirements

This segment has no requirement.

Variables

Variables Default Description
RETURN_CODE_CHAR Character to show before the segment content
RETURN_CODE_FG white Foreground color of segment
RETURN_CODE_BG black Background color of segment, only used by v2

Examples

Prompt v1 Prompt v2
Full Version
return_code v1 full
return_code v2 full
Short Version
return_code v1 short
return_code v2 short


Last update: December 2, 2021
Back to top