Use alias feature, add shortpath to window title
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d36e21b2f6
commit
f6f189704a
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue