oh-my-posh/themes/ys.omp.json

89 lines
2.2 KiB
JSON
Raw Normal View History

2021-02-15 21:40:49 -08:00
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "white",
"properties": {
2022-03-27 01:12:47 -07:00
"fetch_version": false
2022-02-03 01:22:57 -08:00
},
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }})",
2022-02-03 01:22:57 -08:00
"type": "python"
}
2022-02-03 01:22:57 -08:00
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "lightBlue",
2022-02-03 01:22:57 -08:00
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "# ",
2022-02-03 01:22:57 -08:00
"type": "text"
},
{
"foreground": "red",
2022-02-03 01:22:57 -08:00
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": " % ",
2022-02-03 01:22:57 -08:00
"type": "root"
},
{
2022-02-03 01:22:57 -08:00
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "<cyan>{{ .UserName }}</> <darkGray>@</> <green>{{ .HostName }}</> ",
2022-02-03 01:22:57 -08:00
"type": "session"
},
{
"foreground": "lightYellow",
"properties": {
2022-03-27 01:12:47 -07:00
"style": "full"
2022-02-03 01:22:57 -08:00
},
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "<darkGray>in </>{{ .Path }} ",
2022-02-03 01:22:57 -08:00
"type": "path"
},
{
2022-02-03 01:22:57 -08:00
"style": "plain",
"template": "<darkGray>on</> <white>git:</><cyan>{{ .HEAD }}</>{{ if .Working.Changed }}<red> x</>{{ end }} ",
"type": "git",
"properties": {
"fetch_status": true
}
},
{
"foreground": "darkGray",
2022-02-03 01:22:57 -08:00
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "[{{ .CurrentDate | date .Format }}]",
2022-02-03 01:22:57 -08:00
"type": "time"
},
{
"foreground": "red",
2022-02-03 01:22:57 -08:00
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": " C:{{ if gt .Code 0 }}{{ .Code }}{{ end }} ",
2022-02-03 01:22:57 -08:00
"type": "exit"
}
2022-02-03 01:22:57 -08:00
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "lightRed",
2022-02-03 01:22:57 -08:00
"style": "plain",
2022-03-27 01:12:47 -07:00
"template": "$",
2022-02-03 01:22:57 -08:00
"type": "text"
}
2022-02-03 01:22:57 -08:00
],
"type": "prompt"
}
],
2022-02-03 01:22:57 -08:00
"final_space": true,
2022-03-27 01:12:47 -07:00
"version": 2
}