Last active
December 22, 2021 10:00
-
-
Save SBajonczak/33f781574eb3282c792be45ce412af32 to your computer and use it in GitHub Desktop.
OhMyPosh Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"final_space": true, | |
"console_title_template": "{{.Folder}}{{if .Root}} :: root{{end}} :: {{.Shell}}", | |
"tooltips": [ | |
{ | |
"type": "git", | |
"tips": [ | |
"git", | |
"gi", | |
"g" | |
], | |
"style": "diamond", | |
"foreground": "#ffffff", | |
"background": "#61AFEF", | |
"leading_diamond": "", | |
"trailing_diamond": "", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#61AFEF{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#61AFEF{{ end }}", | |
"{{ if gt .Ahead 0 }}#61AFEF{{ end }}", | |
"{{ if gt .Behind 0 }}#61AFEF{{ end }}" | |
], | |
"properties": { | |
"fetch_status": true, | |
"fetch_upstream_icon": true, | |
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}" | |
} | |
} | |
], | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "time", | |
"style": "plain", | |
"foreground": "#ffffff", | |
"background": "#61AFEF", | |
"properties": { | |
"time_format": "15:04" | |
} | |
}, | |
{ | |
"type": "path", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#ffffff", | |
"background": "#61AFEF", | |
"properties": { | |
"prefix": " \uE5FF ", | |
"style": "folder" | |
} | |
}, | |
{ | |
"type": "git", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#ffffff", | |
"background": "#61AFEF", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#61AFEF{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#61AFEF{{ end }}", | |
"{{ if gt .Ahead 0 }}#61AFEF{{ end }}", | |
"{{ if gt .Behind 0 }}#61AFEF{{ end }}" | |
], | |
"properties": { | |
"fetch_worktree_count": true, | |
"fetch_status": true, | |
"fetch_stash_count": true, | |
"fetch_upstream_icon": true, | |
"template": "{{ .HEAD }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}" | |
} | |
}, | |
{ | |
"type": "exit", | |
"style": "plain", | |
"foreground": "#ffffff", | |
"background": "#61AFEF", | |
"background_templates": [ | |
"{{ if gt .Code 0 }}#e91e63{{ end }}" | |
], | |
"leading_diamond": "", | |
"trailing_diamond": "\uE0B4", | |
"properties": { | |
"always_enabled": true, | |
"template": "\uE23A", | |
"prefix": "<#193549>\uE0B0</> " | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment