Skip to content

Commit

Permalink
chore(debug): use provided shell name
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Nov 5, 2024
1 parent da6c925 commit 74326fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cli/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/jandedobbeleer/oh-my-posh/src/config"
"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"

Expand Down Expand Up @@ -57,7 +56,7 @@ func createDebugCmd() *cobra.Command {
// add variables to the environment
env.Var = cfg.Var

terminal.Init(shell.GENERIC)
terminal.Init(args[0])
terminal.BackgroundColor = cfg.TerminalBackground.ResolveTemplate()
terminal.Colors = cfg.MakeColors()
terminal.Plain = plain
Expand Down

0 comments on commit 74326fc

Please sign in to comment.