feat: Add more files

This commit is contained in:
2024-04-02 17:17:39 +11:00
parent f7bb655031
commit dc0ac841d6
3 changed files with 128 additions and 0 deletions

91
theme.omp.json Normal file
View File

@@ -0,0 +1,91 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "lightBlue",
"foreground_templates": [
"{{ if .Root }}lightRed{{ end }}"
],
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>\u250c\u2500\u2500(</>{{ .UserName }}{{ if .Root }}💀{{ else }}@{{ end }}{{ .HostName }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>)</>",
"properties": {
"display_host": true
}
},
{
"type": "python",
"style": "plain",
"foreground": "yellow",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }}{{ end }}{{ .Full }}{{ end }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>",
"properties": {
"fetch_version": false,
"fetch_virtual_env": true
}
},
{
"type": "path",
"style": "plain",
"foreground": "lightWhite",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>{{ .Path }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>",
"properties": {
"folder_separator_icon": "<#c0c0c0>/</>",
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"foreground": "white",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>{{ .HEAD }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>"
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "executiontime",
"style": "plain",
"foreground": "white",
"template": " {{ .FormattedMs }} ",
"properties": {
"always_enabled": true,
"style": "round"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "green",
"foreground_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
],
"template": " {{ if gt .Code 0 }}\u2a2f{{else}}✓{{ end }} ",
"properties": {
"always_enabled": true
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "lightBlue",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>\u2514\u2500</>{{ if .Root }}<lightRed>#</>{{ else }}${{ end }} "
}
],
"newline": true
}
]
}