Skip to main content

Sample

{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"segments": [
{
"foreground": "#007ACC",
"template": " {{ .CurrentDate | date .Format }} ",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"type": "time"
}
],
"type": "rprompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#ffb300",
"foreground": "#ffffff",
"leading_diamond": "๎‚ถ",
"template": " {{ .UserName }} ",
"style": "diamond",
"trailing_diamond": "๎‚ฐ",
"type": "session"
},
{
"background": "#61AFEF",
"foreground": "#ffffff",
"powerline_symbol": "๎‚ฐ",
"template": " {{ .Path }} ",
"properties": {
"exclude_folders": [
"/super/secret/project"
],
"style": "folder"
},
"style": "powerline",
"type": "path"
},
{
"background": "#2e9599",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#f36943{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#a8216b{{ end }}",
"{{ if gt .Ahead 0 }}#35b5ff{{ end }}",
"{{ if gt .Behind 0 }}#f89cfa{{ end }}"
],
"foreground": "#193549",
"foreground_templates": [
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ffffff{{ end }}"
],
"powerline_symbol": "๎‚ฐ",
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }} ",
"properties": {
"branch_max_length": 25,
"fetch_status": true
},
"style": "powerline",
"type": "git"
},
{
"background": "#00897b",
"background_templates": [
"{{ if gt .Code 0 }}#e91e63{{ end }}"
],
"foreground": "#ffffff",
"template": "<parentBackground>๎‚ฐ</> ๎ˆบ ",
"properties": {
"always_enabled": true
},
"style": "diamond",
"trailing_diamond": "๎‚ด",
"type": "status"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}