mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -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, `\`, `\\`)
|
||||
case shell.ZSH:
|
||||
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