Use alias feature, add shortpath to window title

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-09-20 23:40:33 +02:00
parent d36e21b2f6
commit f6f189704a
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -39,6 +39,7 @@ blocks:
template: '{{ .Context }}' template: '{{ .Context }}'
- type: command - type: command
alias: ShortPath
style: diamond style: diamond
leading_diamond: *ld leading_diamond: *ld
trailing_diamond: *td trailing_diamond: *td
@ -109,7 +110,12 @@ blocks:
foreground: p:yellow foreground: p:yellow
template: "<#666>#</>" template: "<#666>#</>"
console_title_template: "{{ .UserName }}@{{ .HostName }} \u279c {{ .Folder }}" - type: text
style: hidden
foreground: p:red
template: "{{ .Segments }}"
console_title_template: "{{ .UserName }}@{{ .HostName }} \u279c {{ .Segments.Shortpath.Output }}"
final_space: true final_space: true