Skip to content

Instantly share code, notes, and snippets.

@sergey-miryanov
Last active January 25, 2025 15:42
Show Gist options
  • Save sergey-miryanov/f7abc7e3b93e5c2907266e97338cc9c7 to your computer and use it in GitHub Desktop.
Save sergey-miryanov/f7abc7e3b93e5c2907266e97338cc9c7 to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "lightBlue",
"template": "\uf439 "
},
{
"type": "root",
"style": "plain",
"foreground": "red",
"template": " \uf0e7 "
},
{
"type": "time",
"style": "plain",
"foreground": "darkGray",
"template": "[{{ .CurrentDate | date .Format }}] ",
"properties": {
"time_format": "2006-01-_2 15:04:05"
}
},
{
"type": "path",
"style": "plain",
"foreground": "lightYellow",
"template": "[{{ .Path }}] ",
"properties": {
"style": "full"
}
},
{
"type": "python",
"style": "plain",
"foreground": "white",
"template": "{{ if .Error }}{{( .Error )}}{{ else }}<#FED142>[\ue235 {{ .Full }}]</> {{ if .Venv }}<#2e9599>[\uf115 {{ .Venv }}]</>{{ end }}{{ end }}",
"properties": {
"fetch_version": true,
"display_mode": "environment"
}
},
{
"type": "text",
"style": "plain",
"template": "{{ if .Env.POSH_GIT_STRING }}{{ .Env.POSH_GIT_STRING }}{{ end }} "
},
{
"type": "project",
"style": "plain",
"foreground": "#5EADF2",
"template": "[{{ if .Error }}{{ .Error }}{{ else }}\uf487 {{ if .Name }}{{ .Name }}{{ end }}{{if .Version}} {{.Version}}{{end}}{{end}}] "
},
{
"type": "executiontime",
"style": "plain",
"foreground": "darkGray",
"template": "[\udb80\udd52 {{ .FormattedMs }}] ",
"properties": {
"threshold": 500,
"style": "dallas",
"always_enabled": true
}
},
{
"type": "status",
"style": "plain",
"foreground": "red",
"template": " [\ue654 {{ if gt .Code 0 }}{{ .Code }}{{ end }}] "
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "lightRed",
"template": "\u279c"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment