feat: Add new configs and updates
This commit is contained in:
@@ -1,50 +1,49 @@
|
||||
{
|
||||
"$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
|
||||
}
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>\u250c\u2500\u2500(</>{{ .UserName }}{{ if .Root }}💀{{ else }}@{{ end }}{{ .HostName }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>)</>",
|
||||
"foreground": "lightBlue",
|
||||
"type": "session",
|
||||
"foreground_templates": [
|
||||
"{{ if .Root }}lightRed{{ end }}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "python",
|
||||
"style": "plain",
|
||||
"foreground": "yellow",
|
||||
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</> {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}(v{{ .Full }}){{ end }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>",
|
||||
"properties": {
|
||||
"fetch_version": true,
|
||||
"fetch_virtual_env": true,
|
||||
"display_mode": "context",
|
||||
"display_version": true,
|
||||
"display_mode": "context"
|
||||
}
|
||||
"fetch_version": true,
|
||||
"fetch_virtual_env": true
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>\ue73c {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}(v{{ .Full }}){{ end }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>",
|
||||
"foreground": "yellow",
|
||||
"type": "python"
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>{{ .Path }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>",
|
||||
"foreground": "lightWhite",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"type": "git",
|
||||
"style": "plain",
|
||||
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>{{ .HEAD }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>",
|
||||
"foreground": "white",
|
||||
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>{{ .HEAD }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>"
|
||||
"type": "git"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -53,28 +52,28 @@
|
||||
"alignment": "right",
|
||||
"segments": [
|
||||
{
|
||||
"type": "executiontime",
|
||||
"style": "plain",
|
||||
"foreground": "white",
|
||||
"template": " {{ .FormattedMs }} ",
|
||||
"properties": {
|
||||
"always_enabled": false,
|
||||
"threshold": 50,
|
||||
"style": "round"
|
||||
}
|
||||
"style": "round",
|
||||
"threshold": 50
|
||||
},
|
||||
"style": "plain",
|
||||
"template": " {{ .FormattedMs }} ",
|
||||
"foreground": "white",
|
||||
"type": "executiontime"
|
||||
},
|
||||
{
|
||||
"type": "executiontime",
|
||||
"properties": {
|
||||
"always_enabled": true,
|
||||
"threshold": 50
|
||||
},
|
||||
"style": "plain",
|
||||
"template": " {{ if gt .Code 0 }}\u2a2f{{else}}{{if gt .Ms 50}}✓{{ end }}{{ end }} ",
|
||||
"foreground": "green",
|
||||
"type": "executiontime",
|
||||
"foreground_templates": [
|
||||
"{{ if gt .Code 0 }}red{{ end }}"
|
||||
],
|
||||
"template": " {{ if gt .Code 0 }}\u2a2f{{else}}✓{{ end }} ",
|
||||
"properties": {
|
||||
"always_enabled": false,
|
||||
"threshold": 50
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -83,13 +82,14 @@
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"type": "text",
|
||||
"style": "plain",
|
||||
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>\u2514\u2500</>{{ if .Root }}<lightRed>#</>{{ else }}${{ end }} ",
|
||||
"foreground": "lightBlue",
|
||||
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>\u2514\u2500</>{{ if .Root }}<lightRed>#</>{{ else }}${{ end }} "
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"newline": true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"version": 3
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user