Closed akunzai closed 2 years ago
linked to https://github.com/JanDeDobbeleer/oh-my-posh/pull/1320
in this scenario, properties is null. Temporary workaround is to add an empty properties
block:
{
"type": "exit",
"style": "plain",
"foreground": "red",
"properties": {
}
}
One way to solve it is to initialize the map by default in segment.go
mapSegmentWithWriter
.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
Without properties in exit segment,
When last shell command exit with non-zero code,
the exit segment will run into fatal error.
Theme
What OS are you seeing the problem on?
Linux, macOS
Which shell are you using?
zsh, bash
Log output