mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
fix(image): initialize image correctly
This commit is contained in:
parent
bb22204365
commit
0b76beaff4
|
@ -60,6 +60,9 @@ Exports the config to an image file using customized output options.`,
|
|||
|
||||
env.Init()
|
||||
defer env.Close()
|
||||
|
||||
template.Init(env)
|
||||
|
||||
cfg := config.Load(env)
|
||||
|
||||
// set sane defaults for things we don't print
|
||||
|
@ -73,8 +76,6 @@ Exports the config to an image file using customized output options.`,
|
|||
terminal.BackgroundColor = cfg.TerminalBackground.ResolveTemplate()
|
||||
terminal.Colors = cfg.MakeColors()
|
||||
|
||||
template.Init(env)
|
||||
|
||||
eng := &prompt.Engine{
|
||||
Config: cfg,
|
||||
Env: env,
|
||||
|
|
Loading…
Reference in a new issue