mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
fix(pwsh): escape backticks correctly
This commit is contained in:
parent
eabe6b3a7a
commit
dfae989782
|
@ -400,6 +400,7 @@ func (segment *Segment) SetText() {
|
||||||
segment.text = strings.ReplaceAll(segment.text, `\`, `\\`)
|
segment.text = strings.ReplaceAll(segment.text, `\`, `\\`)
|
||||||
case shell.ZSH:
|
case shell.ZSH:
|
||||||
segment.text = strings.ReplaceAll(segment.text, `%`, `%%`)
|
segment.text = strings.ReplaceAll(segment.text, `%`, `%%`)
|
||||||
|
case shell.PWSH, shell.PWSH5:
|
||||||
|
segment.text = strings.ReplaceAll(segment.text, "`", "``")
|
||||||
}
|
}
|
||||||
segment.text = strings.ReplaceAll(segment.text, "`", "'")
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue