From 74326fc4f200c563a24c935181e217a41681cd57 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 5 Nov 2024 12:53:05 +0100 Subject: [PATCH] chore(debug): use provided shell name --- src/cli/debug.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cli/debug.go b/src/cli/debug.go index 288c29ce3241..7ef76f12edbc 100644 --- a/src/cli/debug.go +++ b/src/cli/debug.go @@ -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" @@ -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