chore(debug): use provided shell name

This commit is contained in:
Jan De Dobbeleer 2024-11-05 12:53:05 +01:00 committed by Jan De Dobbeleer
parent da6c925945
commit 74326fc4f2

View file

@ -8,7 +8,6 @@ import (
"github.com/jandedobbeleer/oh-my-posh/src/config" "github.com/jandedobbeleer/oh-my-posh/src/config"
"github.com/jandedobbeleer/oh-my-posh/src/prompt" "github.com/jandedobbeleer/oh-my-posh/src/prompt"
"github.com/jandedobbeleer/oh-my-posh/src/runtime" "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/template"
"github.com/jandedobbeleer/oh-my-posh/src/terminal" "github.com/jandedobbeleer/oh-my-posh/src/terminal"
@ -57,7 +56,7 @@ func createDebugCmd() *cobra.Command {
// add variables to the environment // add variables to the environment
env.Var = cfg.Var env.Var = cfg.Var
terminal.Init(shell.GENERIC) terminal.Init(args[0])
terminal.BackgroundColor = cfg.TerminalBackground.ResolveTemplate() terminal.BackgroundColor = cfg.TerminalBackground.ResolveTemplate()
terminal.Colors = cfg.MakeColors() terminal.Colors = cfg.MakeColors()
terminal.Plain = plain terminal.Plain = plain