Refactor
This commit is contained in:
parent
30bd30e038
commit
71c8ea7bbd
41 changed files with 375 additions and 284 deletions
|
|
@ -1,79 +0,0 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "prompt",
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "p:os",
|
||||
"style": "plain",
|
||||
"template": "{{.Icon}}",
|
||||
"type": "os"
|
||||
},
|
||||
{
|
||||
"foreground": "cyan",
|
||||
"style": "plain",
|
||||
"template": "{{if .Root}} <yellow>\ue701 {{ .UserName }} as Administrator</>{{end}}",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"enable_hyperlink": true,
|
||||
"home_icon": "\uf015 ~",
|
||||
"style": "short"
|
||||
},
|
||||
"foreground": "lightBlue",
|
||||
"type": "path",
|
||||
"style": "plain"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"display_stash_count": true,
|
||||
"branch_icon": "\ue725 ",
|
||||
"prefix": "<white>\ue708</>"
|
||||
},
|
||||
"foreground": "lightCyan",
|
||||
"type": "git",
|
||||
"style": "plain"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"postfix": "",
|
||||
"prefix": "",
|
||||
"text": "\u200b"
|
||||
},
|
||||
"foreground": "white",
|
||||
"type": "text",
|
||||
"style": "plain"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "cyan",
|
||||
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
||||
"properties": {
|
||||
"always_enabled": true
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "\u276f ",
|
||||
"type": "status"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"transient_prompt": {
|
||||
"foreground": "cyan",
|
||||
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
||||
"template": "\u276f ",
|
||||
"newline": true
|
||||
},
|
||||
"version": 3,
|
||||
"final_space": false
|
||||
}
|
||||
Loading…
Reference in a new issue