fix(init): lowercase shellname

relates to #3113
This commit is contained in:
Jan De Dobbeleer 2022-11-22 13:08:21 +01:00 committed by Jan De Dobbeleer
parent c39e76bd4b
commit f93f223f5e

View file

@ -3,6 +3,7 @@ package cli
import (
"fmt"
"os"
"strings"
"github.com/spf13/cobra"
)
@ -24,7 +25,7 @@ experience, regardless of where you are. For a detailed guide
on getting started, have a look at the docs at https://ohmyposh.dev`,
Run: func(cmd *cobra.Command, args []string) {
if initialize {
runInit(shellName)
runInit(strings.ToLower(shellName))
return
}
if displayVersion {