mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 03:04:06 +00:00
135 lines
3.8 KiB
JSON
135 lines
3.8 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"final_space": true,
|
|
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
|
|
"auto_upgrade": true,
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"foreground": "cyan",
|
|
"style": "powerline",
|
|
"template": "{{ .Icon }}",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"type": "session",
|
|
"style": "plain",
|
|
"template": " {{ if .SSHSession }}\ueba9 {{ .UserName }}@{{ end }}{{ .HostName }}"
|
|
},
|
|
{
|
|
"foreground": "cyan",
|
|
"properties": {
|
|
"style": "mixed"
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ .Path }} ",
|
|
"type": "path",
|
|
"mapped_locations": {
|
|
"~/Code/*": "\uf09b"
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "plain",
|
|
"foreground": "lightGreen",
|
|
"template": "{{ .UpstreamIcon }}{{ if or (.Staging.Changed) (.Working.Changed) }}({{if .Behind }}\u2193 {{ .Behind }} {{ end }}{{if .Staging.Changed }}\uf046 {{ .Staging.String }} {{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }}| {{ end }}{{ if .Working.Changed }}\uf044 {{ .Working.String }}{{ end }}){{ end }}",
|
|
"properties": {
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true,
|
|
"untracked_modes": {
|
|
"~/Code/oh-my-posh/": "no"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "terraform",
|
|
"style": "plain",
|
|
"foreground": "#000000",
|
|
"background": "#ebcc34",
|
|
"template": "{{.WorkspaceName}}"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"foreground": "#68a063",
|
|
"properties": {
|
|
"display_mode": "files",
|
|
"fetch_package_manager": true,
|
|
"fetch_version": true
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
|
|
"type": "node"
|
|
},
|
|
{
|
|
"foreground": "#4063D8",
|
|
"properties": {
|
|
"display_mode": "files",
|
|
"fetch_version": true
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
|
"type": "crystal"
|
|
},
|
|
{
|
|
"foreground": "#DE3F24",
|
|
"properties": {
|
|
"display_mode": "files",
|
|
"fetch_version": true
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
|
"type": "ruby"
|
|
},
|
|
{
|
|
"foreground": "#FED142",
|
|
"properties": {
|
|
"display_mode": "context",
|
|
"fetch_virtual_env": false
|
|
},
|
|
"style": "plain",
|
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
|
"type": "python"
|
|
},
|
|
{
|
|
"type": "php",
|
|
"style": "plain",
|
|
"template": " \ue73d {{ .Full }} "
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
},
|
|
{
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"background": "transparent",
|
|
"foreground": "lightGreen",
|
|
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
|
"properties": {
|
|
"always_enabled": true
|
|
},
|
|
"style": "plain",
|
|
"template": "\u279c",
|
|
"type": "status"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"transient_prompt": {
|
|
"background": "transparent",
|
|
"foreground": "lightGreen",
|
|
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
|
"template": "\u279c "
|
|
},
|
|
"version": 2
|
|
}
|