diff --git a/zen.toml b/zen.toml index 7edb6f0..9f7e601 100644 --- a/zen.toml +++ b/zen.toml @@ -24,7 +24,10 @@ console_title_template = '{{ .Shell }} in {{ .Folder }}' style = 'plain' foreground = 'p:grey' background = 'transparent' - template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} {{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}' + template = """ \ +{{if not .Detached}}{{ .HEAD }}{{else}}@{{ printf "%.7s" .Commit.Sha }}{{end}}\ +{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} {{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}\ +""" [blocks.segments.properties] branch_icon = ''