mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-30 04:21:19 -08:00
fix(engine): allow template override
This commit is contained in:
parent
c94e5e6efb
commit
e95e0d6b1b
|
@ -150,8 +150,9 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (segment *Segment) string() string {
|
func (segment *Segment) string() string {
|
||||||
|
segmentTemplate := segment.Properties.GetString(properties.SegmentTemplate, segment.writer.Template())
|
||||||
tmpl := &template.Text{
|
tmpl := &template.Text{
|
||||||
Template: segment.writer.Template(),
|
Template: segmentTemplate,
|
||||||
Context: segment.writer,
|
Context: segment.writer,
|
||||||
Env: segment.env,
|
Env: segment.env,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue