diff --git a/src/cli/init.go b/src/cli/init.go index e23dcb89..96410ddb 100644 --- a/src/cli/init.go +++ b/src/cli/init.go @@ -58,7 +58,7 @@ See the documentation to initialize your shell: https://ohmyposh.dev/docs/instal env := &runtime.Terminal{ CmdFlags: &runtime.Flags{ - Shell: shellName, + Shell: args[0], Config: configFlag, Strict: strict, Debug: debug,