Created
July 11, 2024 14:33
-
-
Save keller/6b8c69ff6e490a70a81bc9cb3d817baf to your computer and use it in GitHub Desktop.
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", | |
"version": 2, | |
"final_space": true, | |
"console_title_template": "{{ .Shell }} in {{ .Folder }}", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "path", | |
"style": "plain", | |
"template": "{{ .Path }}", | |
"properties": { | |
"style": "full" | |
}, | |
"background": "transparent", | |
"foreground": "blue", | |
"Text": "", | |
"Duration": 0, | |
"NameLength": 0 | |
}, | |
{ | |
"type": "git", | |
"style": "plain", | |
"template": " {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}\u21e3{{ end }}{{ if gt .Ahead 0 }}\u21e1{{ end }}</>", | |
"properties": { | |
"branch_icon": "", | |
"commit_icon": "@", | |
"fetch_status": true | |
}, | |
"background": "transparent", | |
"foreground": "p:grey", | |
"Text": "", | |
"Duration": 0, | |
"NameLength": 0 | |
} | |
], | |
"newline": true | |
}, | |
{ | |
"type": "rprompt", | |
"segments": [ | |
{ | |
"type": "executiontime", | |
"style": "plain", | |
"template": "{{ .FormattedMs }}", | |
"properties": { | |
"threshold": 5000 | |
}, | |
"background": "transparent", | |
"foreground": "yellow", | |
"Text": "", | |
"Duration": 0, | |
"NameLength": 0 | |
} | |
], | |
"overflow": "hidden" | |
}, | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "text", | |
"style": "plain", | |
"foreground_templates": [ | |
"{{if gt .Code 0}}red{{end}}", | |
"{{if eq .Code 0}}magenta{{end}}" | |
], | |
"template": "❯", | |
"background": "transparent", | |
"foreground": "", | |
"Text": "", | |
"Duration": 0, | |
"NameLength": 0 | |
} | |
], | |
"newline": true | |
} | |
], | |
"transient_prompt": { | |
"foreground_templates": [ | |
"{{if gt .Code 0}}red{{end}}", | |
"{{if eq .Code 0}}magenta{{end}}" | |
], | |
"template": "❯ ", | |
"background": "transparent", | |
"foreground": "", | |
"Text": "", | |
"Duration": 0, | |
"NameLength": 0 | |
}, | |
"secondary_prompt": { | |
"template": "❯❯ ", | |
"background": "transparent", | |
"foreground": "magenta", | |
"Text": "", | |
"Duration": 0, | |
"NameLength": 0 | |
} | |
} |
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 | |
version = 2 | |
final_space = true | |
console_title_template = '{{ .Shell }} in {{ .Folder }}' | |
[[blocks]] | |
type = 'prompt' | |
alignment = 'left' | |
newline = true | |
[[blocks.segments]] | |
type = 'path' | |
style = 'plain' | |
background = 'transparent' | |
foreground = 'blue' | |
template = '{{ .Path }}' | |
[blocks.segments.properties] | |
style = 'full' | |
[[blocks.segments]] | |
type = 'git' | |
style = 'plain' | |
foreground = 'p:grey' | |
background = 'transparent' | |
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>' | |
[blocks.segments.properties] | |
branch_icon = '' | |
commit_icon = '@' | |
fetch_status = true | |
[[blocks]] | |
type = 'rprompt' | |
overflow = 'hidden' | |
[[blocks.segments]] | |
type = 'executiontime' | |
style = 'plain' | |
foreground = 'yellow' | |
background = 'transparent' | |
template = '{{ .FormattedMs }}' | |
[blocks.segments.properties] | |
threshold = 5000 | |
[[blocks]] | |
type = 'prompt' | |
alignment = 'left' | |
newline = true | |
[[blocks.segments]] | |
type = 'text' | |
style = 'plain' | |
foreground_templates = [ | |
"{{if gt .Code 0}}red{{end}}", | |
"{{if eq .Code 0}}magenta{{end}}", | |
] | |
background = 'transparent' | |
template = '❯' | |
[transient_prompt] | |
foreground_templates = [ | |
"{{if gt .Code 0}}red{{end}}", | |
"{{if eq .Code 0}}magenta{{end}}", | |
] | |
background = 'transparent' | |
template = '❯ ' | |
[secondary_prompt] | |
foreground = 'magenta' | |
background = 'transparent' | |
template = '❯❯ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment