mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-29 20:10:56 -08:00
parent
f2ee958ec1
commit
7b5572e73c
|
@ -266,6 +266,9 @@ func (segment *Segment) mapSegmentWithWriter(env environmentInfo) error {
|
|||
WiFi: &wifi{},
|
||||
WinReg: &winreg{},
|
||||
}
|
||||
if segment.Properties == nil {
|
||||
segment.Properties = make(properties)
|
||||
}
|
||||
if writer, ok := functions[segment.Type]; ok {
|
||||
writer.init(segment.Properties, env)
|
||||
segment.writer = writer
|
||||
|
|
Loading…
Reference in a new issue