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 | ||
Short Version |
Last update:
December 2, 2021