diff --git a/src/segment_os.go b/src/segment_os.go index fcffea97..d60c96ad 100644 --- a/src/segment_os.go +++ b/src/segment_os.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "strings" ) type osInfo struct { @@ -84,7 +85,7 @@ func (n *osInfo) string() string { n.os = p return n.getDistroName(p, "") } - n.os = wsl + n.os = strings.ToLower(wsl) return fmt.Sprintf("%s%s%s", n.props.getString(WSL, "WSL"), n.props.getString(WSLSeparator, " - "), diff --git a/src/template.go b/src/template.go index cc24e81a..e435d621 100644 --- a/src/template.go +++ b/src/template.go @@ -62,7 +62,7 @@ func (c *Context) init(t *textTemplate) { wsl := t.Env.getenv("WSL_DISTRO_NAME") goos = t.Env.getPlatform() if len(wsl) != 0 { - goos = wsl + goos = strings.ToLower(wsl) } } c.OS = goos