2021-02-15 21:40:49 -08:00
|
|
|
{
|
2021-11-07 08:42:56 -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"
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
|
|
|
"type": "prompt"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
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"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
2022-02-03 01:22:57 -08:00
|
|
|
"style": "plain",
|
2022-10-28 00:27:14 -07:00
|
|
|
"template": "<darkGray>on</> <white>git:</><cyan>{{ .HEAD }}</>{{ if .Working.Changed }}<red> x</>{{ end }} ",
|
|
|
|
"type": "git",
|
|
|
|
"properties": {
|
|
|
|
"fetch_status": true
|
|
|
|
}
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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 }} ",
|
2023-07-23 00:29:54 -07:00
|
|
|
"type": "status"
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
|
|
|
"type": "prompt"
|
2021-11-07 08:42:56 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
2022-02-03 01:22:57 -08:00
|
|
|
],
|
|
|
|
"type": "prompt"
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|
|
|
|
],
|
2022-02-03 01:22:57 -08:00
|
|
|
"final_space": true,
|
2024-10-28 05:59:40 -07:00
|
|
|
"version": 3
|
2021-11-07 08:42:56 -08:00
|
|
|
}
|