mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
fix: prompt termination in devious-diamonds.omp.yaml
The " \b" in this template was causing issues with non-deletable characters when you used tab to pop up suggestions in zsh. The approach of inserting an invisible character if not root preserves the trailing diamond without introducing spacing issues.
This commit is contained in:
parent
a47070b9d8
commit
1055f69ec7
|
@ -234,7 +234,7 @@ blocks:
|
|||
foreground: white
|
||||
properties:
|
||||
root_icon:
|
||||
template: "{{ if and .Root ( not .Segments.Path.Writable ) }} {{ end }}{{ if and .Root .Segments.Path.Writable }} {{ end }} \b"
|
||||
template: "{{ if not .Root }}\u2800{{ end }}{{ if and .Root ( not .Segments.Path.Writable ) }} {{ end }}{{ if and .Root .Segments.Path.Writable }} {{ end }}"
|
||||
console_title_template: "{{ .Folder }}"
|
||||
palette:
|
||||
black: "#1B1A23"
|
||||
|
|
Loading…
Reference in a new issue