mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-29 04:49:39 -08:00
fix(pwsh): pass --strict
flag correctly in initialization
This commit is contained in:
parent
cc1850cfd1
commit
a64bc19698
|
@ -155,6 +155,9 @@ func Init(env environment.Environment) string {
|
|||
if err != nil {
|
||||
return noExe
|
||||
}
|
||||
if env.Flags().Strict {
|
||||
return fmt.Sprintf("(@(& %s init %s --config=%s --print --strict) -join \"`n\") | Invoke-Expression", quotePwshStr(executable), shell, quotePwshStr(env.Flags().Config))
|
||||
}
|
||||
return fmt.Sprintf("(@(& %s init %s --config=%s --print) -join \"`n\") | Invoke-Expression", quotePwshStr(executable), shell, quotePwshStr(env.Flags().Config))
|
||||
case ZSH, BASH, FISH, CMD:
|
||||
return PrintInit(env)
|
||||
|
|
Loading…
Reference in a new issue