Created
December 28, 2024 05:24
-
-
Save techthoughts2/2ff212e18f8019ab69b7f1bfb9659e79 to your computer and use it in GitHub Desktop.
My oh-my-posh custom theme in yaml format
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
$schema: https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json | |
blocks: | |
- segments: | |
- type: aws | |
style: diamond | |
# powerline_symbol: | |
# powerline_symbol: " \u03BB" | |
leading_diamond: | |
trailing_diamond: | |
foreground: "#faa029" | |
background: "#565656" | |
template: " {{.Profile}}{{if .Region}}@{{.Region}}{{end}}" | |
- type: status | |
style: diamond | |
# foreground: "#ffffff" | |
background: "#234d70" | |
# background_templates: | |
# - "{{ if .Error }}#e91e63{{ end }}" | |
leading_diamond: | |
template: " {{ if gt .Code 0 }}<#ff0000>\uf00d</>{{ else }}<#23d18b>\uf42e</>{{ end }} |" | |
properties: | |
always_enabled: true | |
- type: executiontime | |
# style: powerline | |
# powerline_symbol: | |
foreground: "#bab02a" | |
background: "#234d70" | |
template: "<#fefefe></> {{ .FormattedMs }}" | |
properties: | |
threshold: 500 | |
style: austin | |
always_enabled: true | |
- type: time | |
background: "#234d70" | |
foreground: "#d6deeb" | |
style: diamond | |
trailing_diamond: | |
template: "| {{ .CurrentDate | date .Format }}" | |
properties: | |
time_format: 15:04:05 | |
type: rprompt | |
- alignment: left | |
newline: true | |
segments: | |
- type: session | |
style: diamond | |
foreground: "#D6DEEB" | |
background: "#575656" | |
leading_diamond: | |
# trailing_diamond: | |
template: " {{ if .SSHSession }} {{ end }}{{ .UserName }}@{{ .HostName }}" | |
# - type: shell | |
# style: powerline | |
# powerline_symbol: | |
# foreground: "#ffffff" | |
# background: "#0077c2" | |
# template: "\uf489 {{ .Name }}" | |
# # properties: | |
# # mapped_shell_names: | |
# # pwsh: PS | |
- type: root | |
# style: powerline | |
style: diamond | |
# powerline_symbol: | |
foreground: "#111111" | |
background: "#ffff66" | |
template: "<parentBackground>\ue0b0</> " | |
- type: path | |
style: powerline | |
powerline_symbol: | |
foreground: "#193549" | |
background: "#14c2dd" | |
template: " {{ .Path }} " | |
properties: | |
style: letter | |
# max_depth: 3 | |
mapped_locations: | |
C:\temp: "\u2699\ufe0f" | |
C:\Users\jakew\OneDrive\Desktop\Project\0_CodeProject\1_git: | |
- type: python | |
style: powerline | |
powerline_symbol: | |
foreground: "#100e23" | |
background: "#906cff" | |
template: " {{ .Full }} " | |
# - type: status | |
# style: diamond | |
# foreground: "#ffffff" | |
# background: "#00897b" | |
# background_templates: | |
# - "{{ if .Error }}#e91e63{{ end }}" | |
# trailing_diamond: | |
# template: "<#193549></> " | |
# properties: | |
# always_enabled: true | |
# - type: exit | |
# style: powerline | |
# powerline_symbol: " \u27A6" | |
# foreground: "#ffffff" | |
# background: "#FF5252" | |
# template: " {{.ExitCode}}" | |
- type: text | |
style: plain | |
template: "{{ if .Env.POSH_GIT_STRING }} {{ .Env.POSH_GIT_STRING }} {{ end }}" | |
# - type: git | |
# style: powerline | |
# powerline_symbol: | |
# foreground: "#193549" | |
# background: "#ffeb3b" | |
# background_templates: | |
# - "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}" | |
# - "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}" | |
# - "{{ if gt .Ahead 0 }}#B388FF{{ end }}" | |
# - "{{ if gt .Behind 0 }}#B388FB{{ end }}" | |
# 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 }}" | |
# properties: | |
# fetch_status: true | |
# fetch_upstream_icon: true | |
# untracked_modes: | |
# /Users/user/Projects/oh-my-posh/: no | |
# source: cli | |
# mapped_branches: | |
# Enhancements: "🚀 " | |
# bug/*: "🐛 " | |
type: prompt | |
final_space: true | |
version: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment