fix(pwsh): escape backticks correctly

This commit is contained in:
Jan De Dobbeleer 2022-08-27 21:49:03 +02:00 committed by Jan De Dobbeleer
parent eabe6b3a7a
commit dfae989782

View file

@ -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, "`", "'")
}