Last active
October 5, 2024 19:17
-
-
Save aifrak/7753b1806143a6d6a4f5f6f06b307384 to your computer and use it in GitHub Desktop.
oh-my-posh custom theme
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
| # yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json | |
| console_title_template: "{{ .Shell }} {{if .Root}} โก {{end}}{{.UserName}} \u2794 ๐{{.Folder}}" | |
| final_space: true | |
| version: 2 | |
| palette: | |
| aws_background: "#FFA400" | |
| executiontime_background: "#4c1f5e" | |
| exit_success: "#16a34a" | |
| exit_error: "#dc2626" | |
| git_background: "#17d7a0" | |
| git_changes: "#c4a000" | |
| git_no_changes: "#f26d50" | |
| git_ahead: "#89d1dc" | |
| git_behind: "#fffb38" | |
| os_background: "#464646" | |
| path_background: "#003543" | |
| session_background: "#170B3B" | |
| shell_background: "#341948" | |
| root_background: "#ffff66" | |
| text_foreground: "#ffffff" | |
| text_alt_foreground: "#111111" | |
| time_background: "#0E050F" | |
| blocks: | |
| - alignment: left | |
| type: prompt | |
| segments: | |
| - type: os | |
| style: diamond | |
| background: p:os_background | |
| foreground: p:text_foreground | |
| leading_diamond: ๎ถ | |
| trailing_diamond: ๎ฐ | |
| template: " {{ if .Env.DEVBOX_SHELL_ENABLED }}๏ {{ end }}{{ .Icon }} {{ if .WSL }}(wsl){{ end }} " | |
| - type: root | |
| style: diamond | |
| background: p:root_brackground | |
| foreground: p:text_alt_foreground | |
| trailing_diamond: ๎ฐ | |
| template: " โก " | |
| - type: path | |
| style: diamond | |
| background: p:path_background | |
| foreground: p:text_foreground | |
| trailing_diamond: ๎ฐ | |
| properties: | |
| home_icon: "๏ ~" | |
| style: full | |
| template: " {{ path .Path .Location }} {{ if not .Writable }}๏ฃ{{ end }}" | |
| - type: git | |
| style: diamond | |
| background: p:git_background | |
| background_templates: | |
| - "{{ if or (.Working.Changed) (.Staging.Changed) }}p:git_changes{{ end }}" | |
| - "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:git_no_changes{{ end }}" | |
| - "{{ if gt .Ahead 0 }}p:git_ahead{{ end }}" | |
| - "{{ if gt .Behind 0 }}p:git_behind{{ end }}" | |
| foreground: p:text_alt_foreground | |
| properties: | |
| branch_max_length: 25 | |
| fetch_stash_count: true | |
| fetch_status: true | |
| fetch_upstream_icon: true | |
| template: | |
| " {{ .UpstreamIcon }}{{ .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 }} " | |
| - type: aws | |
| style: diamond | |
| background: p:aws_background | |
| foreground: p:text_foreground | |
| trailing_diamond: ๎ฐ | |
| properties: | |
| display_default: false | |
| template: " ๎ญ {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} " | |
| - type: status | |
| style: diamond | |
| background: p:exit_success | |
| background_templates: | |
| - "{{ if gt .Code 0 }}p:exit_error{{ end }}" | |
| foreground: p:text_foreground | |
| trailing_diamond: ๎ด | |
| properties: | |
| always_enabled: true | |
| template: " {{ if gt .Code 0 }}๏ {{ reason .Code }}{{ else }}๏{{ end }} " | |
| - alignment: right | |
| type: prompt | |
| segments: | |
| - type: executiontime | |
| style: diamond | |
| background: p:executiontime_background | |
| foreground: p:text_foreground | |
| leading_diamond: ๎ถ | |
| properties: | |
| always_enabled: true | |
| template: " ๎ฎข {{ .FormattedMs }} " | |
| - type: shell | |
| style: diamond | |
| background: p:shell_background | |
| foreground: p:text_foreground | |
| leading_diamond: ๎ฒ | |
| template: " ๏ {{ .Name }} " | |
| - type: session | |
| style: diamond | |
| background: p:session_background | |
| foreground: p:text_foreground | |
| leading_diamond: ๎ฒ | |
| template: " {{ if .SSHSession }}๎ฎฉ {{ end }}{{ .UserName }}@{{ .HostName }} " | |
| - type: time | |
| style: diamond | |
| background: p:time_background | |
| foreground: p:text_foreground | |
| leading_diamond: ๎ฒ | |
| trailing_diamond: ๎ด | |
| template: " ๎ {{ .CurrentDate | date .Format }} " | |
| - alignment: left | |
| newline: true | |
| type: prompt | |
| segments: | |
| - type: text | |
| style: plain | |
| foreground: "#81ff91" | |
| template: ๎ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment