269 lines
8.2 KiB
JSON
269 lines
8.2 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none"
|
|
},
|
|
"leading_diamond": "╭──",
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
|
|
"foreground": "black",
|
|
"background": "lightWhite",
|
|
"type": "os",
|
|
"style": "diamond"
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none",
|
|
"folder_icon": "",
|
|
"folder_separator_icon": "",
|
|
"home_icon": "",
|
|
"mapped_locations": {
|
|
"C:\\Users": "",
|
|
"C:\\Windows": ""
|
|
},
|
|
"mixed_threshold": 8,
|
|
"style": "mixed"
|
|
},
|
|
"template": " {{ path .Path .Location }} ",
|
|
"foreground": "lightWhite",
|
|
"powerline_symbol": "",
|
|
"background": "blue",
|
|
"type": "path",
|
|
"style": "powerline"
|
|
},
|
|
{
|
|
"properties": {
|
|
"branch_icon": " ",
|
|
"cache_duration": "none",
|
|
"fetch_stash_count": true,
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true
|
|
},
|
|
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} ",
|
|
"foreground": "black",
|
|
"powerline_symbol": "",
|
|
"background": "green",
|
|
"type": "git",
|
|
"style": "powerline",
|
|
"background_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}yellow{{ end }}",
|
|
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}lightRed{{ end }}",
|
|
"{{ if gt .Ahead 0 }}lightCyan{{ end }}",
|
|
"{{ if gt .Behind 0 }}green{{ end }}"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "right",
|
|
"segments": [
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none",
|
|
"fetch_version": true
|
|
},
|
|
"template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
|
|
"foreground": "white",
|
|
"powerline_symbol": "",
|
|
"background": "green",
|
|
"type": "node",
|
|
"style": "powerline",
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none",
|
|
"fetch_version": true
|
|
},
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
|
|
"foreground": "darkGray",
|
|
"powerline_symbol": "",
|
|
"background": "lightBlue",
|
|
"type": "go",
|
|
"style": "powerline",
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none",
|
|
"fetch_version": true
|
|
},
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
|
|
"foreground": "darkGray",
|
|
"powerline_symbol": "",
|
|
"background": "blue",
|
|
"type": "julia",
|
|
"style": "powerline",
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none",
|
|
"display_mode": "environment",
|
|
"fetch_virtual_env": true,
|
|
"home_enabled": true
|
|
},
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
|
|
"foreground": "darkGray",
|
|
"powerline_symbol": "",
|
|
"background": "lightYellow",
|
|
"type": "python",
|
|
"style": "powerline",
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none",
|
|
"display_mode": "files",
|
|
"fetch_version": true
|
|
},
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
|
|
"foreground": "white",
|
|
"powerline_symbol": "",
|
|
"background": "red",
|
|
"type": "ruby",
|
|
"style": "powerline",
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none",
|
|
"display_mode": "files",
|
|
"fetch_version": false
|
|
},
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
|
|
"foreground": "white",
|
|
"powerline_symbol": "",
|
|
"background": "yellow",
|
|
"type": "azfunc",
|
|
"style": "powerline",
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none",
|
|
"display_default": false
|
|
},
|
|
"template": " {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
|
|
"foreground": "white",
|
|
"powerline_symbol": "",
|
|
"type": "aws",
|
|
"style": "powerline",
|
|
"background_templates": [
|
|
"{{if contains \"default\" .Profile}}yellow{{end}}",
|
|
"{{if contains \"jan\" .Profile}}red{{end}}"
|
|
],
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none"
|
|
},
|
|
"template": " ",
|
|
"foreground": "darkGray",
|
|
"powerline_symbol": "",
|
|
"background": "lightYellow",
|
|
"type": "root",
|
|
"style": "powerline",
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none"
|
|
},
|
|
"template": " {{ .FormattedMs }} ",
|
|
"foreground": "black",
|
|
"powerline_symbol": "",
|
|
"background": "yellow",
|
|
"type": "executiontime",
|
|
"style": "powerline",
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"style": "powerline",
|
|
"powerline_symbol": "",
|
|
"invert_powerline": true,
|
|
"foreground": "white",
|
|
"background": "blue",
|
|
"properties": {
|
|
"mapped_shell_names": {
|
|
"pwsh": " pwsh",
|
|
"powershell": " PowerShell",
|
|
"bash": " bash",
|
|
"zsh": " zsh",
|
|
"xonsh": "🐚 xonsh",
|
|
"fish": " fish",
|
|
"cmd": " cmd"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"always_enabled": true,
|
|
"cache_duration": "none"
|
|
},
|
|
"template": " {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}{{ end }} ",
|
|
"foreground": "black",
|
|
"background": "lightWhite",
|
|
"trailing_diamond": "",
|
|
"type": "status",
|
|
"style": "diamond",
|
|
"background_templates": [
|
|
"{{ if gt .Code 0 }}red{{ end }}"
|
|
],
|
|
"invert_powerline": true
|
|
},
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none"
|
|
},
|
|
"template": "{{ if matchP \"(powershell|pwsh|fish|cmd|nu|zsh)\" .Shell }}─╮{{ end }}",
|
|
"foreground": "lightWhite",
|
|
"type": "text",
|
|
"style": "plain"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none"
|
|
},
|
|
"template": "╰─",
|
|
"foreground": "lightWhite",
|
|
"type": "text",
|
|
"style": "plain"
|
|
}
|
|
],
|
|
"newline": true
|
|
},
|
|
{
|
|
"type": "rprompt",
|
|
"segments": [
|
|
{
|
|
"properties": {
|
|
"cache_duration": "none"
|
|
},
|
|
"template": "─╯",
|
|
"foreground": "lightWhite",
|
|
"type": "text",
|
|
"style": "plain"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"version": 3,
|
|
"final_space": true
|
|
}
|