mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
91 lines
2.5 KiB
JSON
91 lines
2.5 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"console_title": true,
|
|
"console_title_style": "template",
|
|
"console_title_template": "{{if .Root}}(Admin){{end}} {{.Path}}",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": false,
|
|
"segments": [
|
|
{
|
|
"type": "session",
|
|
"style": "plain",
|
|
"foreground": "#BF616A",
|
|
"properties": {
|
|
"display_host": false,
|
|
"display_user": true,
|
|
"user_info_separator": "",
|
|
"prefix": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "plain",
|
|
"foreground": "#81A1C1",
|
|
"properties": {
|
|
"prefix": "",
|
|
"style": "full"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "git",
|
|
"style": "plain",
|
|
"foreground": "#6C6C6C",
|
|
"properties": {
|
|
"prefix": "",
|
|
"fetch_stash_count": true,
|
|
"fetch_status": true,
|
|
"fetch_upstream_icon": true,
|
|
"branch_icon": "",
|
|
"github_icon": "",
|
|
"branch_ahead_icon": "<#88C0D0>\u21e1 </>",
|
|
"branch_behind_icon": "<#88C0D0>\u21e3 </>",
|
|
"local_working_icon": "<#FFAFD7>\u002a</>",
|
|
"template": "{{ .Repo.UpstreamIcon }}{{ .Repo.HEAD }}{{ .Repo.BranchStatus }}{{ if .Repo.Working.Changed }} \uF044 {{ .Repo.Working.String }}{{ end }}{{ if and (.Repo.Working.Changed) (.Repo.Staging.Changed) }} |{{ end }}{{ if .Repo.Staging.Changed }} \uF046 {{ .Repo.Staging.String }}{{ end }}{{ if gt .Repo.StashCount 0 }} \uF692 {{ .Repo.StashCount }}{{ end }}"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "executiontime",
|
|
"style": "plain",
|
|
"foreground": "#A3BE8C",
|
|
"properties": {
|
|
"style": "austin"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "exit",
|
|
"style": "plain",
|
|
"foreground": "#B48EAD",
|
|
"properties": {
|
|
"prefix": "\u276f",
|
|
"display_exit_code": false,
|
|
"error_color": "#BF616A",
|
|
"always_enabled": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|