Created
October 15, 2024 07:00
-
-
Save spartanatreyu/8de46fc84c0c0ad0d53318581785a721 to your computer and use it in GitHub Desktop.
Personal Oh-My-Posh Theme
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 = "{{ .Folder }}" | |
auto_upgrade = true | |
[[blocks]] | |
type = "prompt" | |
alignment = "left" | |
[[blocks.segments]] | |
type = "os" | |
style = "powerline" | |
template = "{{ if .WSL }}WSL at{{ end }} {{.Icon}} " | |
background = "black" | |
foreground = "lightWhite" | |
[[blocks.segments]] | |
type = "path" | |
style = "powerline" | |
powerline_symbol = "\ue0b0" | |
template = " {{ .Path }} " | |
background = "blue" | |
foreground = "black" | |
[blocks.segments.properties] | |
style = "full" | |
[[blocks.segments]] | |
type = "git" | |
style = "powerline" | |
powerline_symbol = "\ue0b0" | |
background_templates = [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}yellow{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}red{{ end }}", | |
"{{ if gt .Ahead 0 }}magenta{{ end }}", | |
"{{ if gt .Behind 0 }}magenta{{ end }}" | |
] | |
leading_diamond = "\ue0b6" | |
trailing_diamond = "\ue0b4" | |
template = " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} " | |
background = "green" | |
foreground = "black" | |
[blocks.segments.properties] | |
branch_icon = "\ue0a0 " | |
branch_identical_icon = "\u25cf" | |
branch_max_length = 25 | |
fetch_stash_count = true | |
fetch_status = true | |
[[blocks]] | |
type = "rprompt" | |
alignment = "left" | |
[[blocks.segments]] | |
type = "status" | |
style = "diamond" | |
foreground_templates = [ | |
"{{ if .Error }}black{{else}}lightGreen{{ end }}" | |
] | |
background_templates = [ | |
"{{ if .Error }}red{{else}}black{{ end }}" | |
] | |
leading_diamond = "\ue0b6" | |
template = "{{ if eq .Code 0 }}\uf00c{{ else }}\uf071 {{ reason .Code }}{{ end }} " | |
[blocks.segments.properties] | |
always_enabled = true | |
[[blocks.segments]] | |
type = "executiontime" | |
foreground = "lightWhite" | |
background = "magenta" | |
template = " {{ .FormattedMs }} " | |
[properties] | |
threshold = 500 | |
style = "austin" | |
always_enabled = true | |
[[blocks.segments]] | |
foreground = "black" | |
background = "lightWhite" | |
template = " {{ .CurrentDate | date .Format }} " | |
style = "plain" | |
type = "time" | |
[blocks.segments.properties] | |
time_format = "15:04:05" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment