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 }}'
|
||||
|
||||
- type: command
|
||||
alias: ShortPath
|
||||
style: diamond
|
||||
leading_diamond: *ld
|
||||
trailing_diamond: *td
|
||||
|
@ -109,7 +110,12 @@ blocks:
|
|||
foreground: p:yellow
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue