mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 11:34:04 -08:00
58 lines
1.8 KiB
JSON
58 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"foreground": "yellow",
|
|
"style": "plain",
|
|
"template": " \ue0a2 ",
|
|
"type": "root"
|
|
},
|
|
{
|
|
"background": "lightBlue",
|
|
"foreground": "black",
|
|
"leading_diamond": "\ue0b6",
|
|
"properties": {
|
|
"style": "mixed"
|
|
},
|
|
"style": "diamond",
|
|
"template": " {{ .Path }} ",
|
|
"trailing_diamond": "\ue0b0",
|
|
"type": "path"
|
|
},
|
|
{
|
|
"background": "green",
|
|
"background_templates": [
|
|
"{{ if or (.Working.Changed) (.Staging.Changed) }}yellow{{ end }}"
|
|
],
|
|
"foreground": "black",
|
|
"powerline_symbol": "\ue0b0",
|
|
"properties": {
|
|
"branch_ahead_icon": "\u2191",
|
|
"branch_behind_icon": "\u2193",
|
|
"branch_gone": "\u2262",
|
|
"branch_icon": "\ue0a0 ",
|
|
"branch_identical_icon": "\u2261",
|
|
"cherry_pick_icon": "\u2713 ",
|
|
"commit_icon": "\u25b7 ",
|
|
"fetch_status": true,
|
|
"merge_icon": "\u25f4 ",
|
|
"no_commits_icon": "[no commits]",
|
|
"rebase_icon": "\u2c62 ",
|
|
"tag_icon": "\u25b6 "
|
|
},
|
|
"style": "powerline",
|
|
"template": " {{ .HEAD }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }} ",
|
|
"type": "git"
|
|
}
|
|
],
|
|
"type": "prompt"
|
|
}
|
|
],
|
|
"console_title_template": "{{.Folder}}{{if .Root}} :: root{{end}} :: {{.Shell}}",
|
|
"final_space": true,
|
|
"version": 3
|
|
}
|