diff --git a/src/cli/config_export_image.go b/src/cli/config_export_image.go index fc06fb6a..3df8179e 100644 --- a/src/cli/config_export_image.go +++ b/src/cli/config_export_image.go @@ -8,6 +8,7 @@ import ( "github.com/jandedobbeleer/oh-my-posh/src/prompt" "github.com/jandedobbeleer/oh-my-posh/src/runtime" "github.com/jandedobbeleer/oh-my-posh/src/shell" + "github.com/jandedobbeleer/oh-my-posh/src/template" "github.com/jandedobbeleer/oh-my-posh/src/terminal" "github.com/spf13/cobra" @@ -72,6 +73,8 @@ 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,