Created
October 12, 2024 06:32
-
-
Save YuanLiou/a5e9c11472b07485dc6da99ab2b14fa1 to your computer and use it in GitHub Desktop.
My Oh my posh theme 0.1
This file contains hidden or 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
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' | |
background = 'transparent' | |
foreground = 'lightCyan' | |
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 = 'lightYellow' | |
background = 'transparent' | |
template = '{{ div .Ms 1000 }}s' | |
[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 = "> " |
Author
YuanLiou
commented
Jan 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment