{ "blocks": [ { "type": "prompt", "alignment": "left", "newline": true, "segments": [ { "type": "os", "style": "diamond", "leading_diamond": "\uE0B6", "trailing_diamond": "", "foreground": "#0077c2", "background": "#fbfbfb", "properties": { "macos": "\uEF179", "windows": "\uF17A", "linux": "\uF17C", "debian": "\uF306", "ubuntu": "\uF31B", "arch": "\uF303", "fedora": "\uF30A", "manjaro": "\uF312", "opensuse": "\uF314" } }, { "type": "session", "style": "powerline", "foreground": "#0077c2", "background": "#fbfbfb", "powerline_symbol": "\uE0B0", "properties": { "prefix": "", "display_host": true, "template": "{{ .UserName }}<#000000>@<#e06c75>{{ .HostName }}" } }, { "type": "root", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#e06c75", "properties": { "template": "\uE799 ", "postfix": "\u2800" } }, { "type": "path", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#ffffff", "background": "#0077c2", "properties": { "style": "letter", "folder_separator_icon": "/", "prefix": " \uE5FE ", "home_icon": "~", "max_depth": 2 } }, { "type": "git", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#193549", "background": "#fffb38", "background_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}", "{{ if gt .Ahead 0 }}#f17c37{{ end }}", "{{ if gt .Behind 0 }}#89d1dc{{ end }}" ], "properties": { "fetch_status": true, "fetch_stash_count": true, "fetch_upstream_icon": true, "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}" } }, { "type": "text", "style": "plain", "foreground": "#FFD54F", "properties": { "text": "{{if .Root}}#{{else}}${{end}}", "postfix": "" } } ] }, { "type": "rprompt", "segments": [ { "type": "exit", "style": "plain", "foreground": "#ffffff", "properties": { "always_enabled": true, "template": "{{ if gt .Code 0 }}\uF659{{ else }}\uF633{{ end }}" } }, { "type": "executiontime", "style": "plain", "foreground": "#ffffff", "properties": { "always_enabled": true, "prefix": "" } }, { "type": "battery", "style": "powerline", "invert_powerline": true, "powerline_symbol": "\uE0B2", "foreground": "#ffffff", "background": "#f36943", "background_templates": [ "{{if eq \"Charging\" .State.String}}#40c4ff{{end}}", "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", "{{if eq \"Full\" .State.String}}#4caf50{{end}}" ], "properties": { "discharging_icon": "\uF57D ", "charging_icon": "\uF588 ", "charged_icon": "\uF583 ", "postfix": "% " } }, { "type": "time", "style": "diamond", "invert_powerline": true, "leading_diamond": "", "trailing_diamond": "\uE0B4", "background": "#61afef", "foreground": "#ffffff", "properties": { "time_format": "15:04 (Mon)" } } ] } ], "final_space": true, "console_title": true, "console_title_style": "template", "console_title_template": "{{.UserName}}@{{.HostName}} : {{.Folder}}" }