mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 03:49:40 -08:00
chore(debug): use provided shell name
This commit is contained in:
parent
da6c925945
commit
74326fc4f2
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue