Skip to content

Commit

Permalink
fix(image): initialize image CLI correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Nov 4, 2024
1 parent 6a8cecb commit 4ebbdd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/config_export_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4ebbdd3

Please sign in to comment.