Skip to content

Instantly share code, notes, and snippets.

@Bouni
Created October 31, 2022 09:24
Show Gist options
  • Save Bouni/f6df6ffaebffdbbc8503a52a951a05b1 to your computer and use it in GitHub Desktop.
Save Bouni/f6df6ffaebffdbbc8503a52a951a05b1 to your computer and use it in GitHub Desktop.
Customized Oh-My-Posh theme, based on M365Princess
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"git-foreground": "#193549",
"git": "#179299",
"git-modified": "#fe640b",
"git-diverged": "#e64553",
"git-ahead": "#7287fd",
"git-behind": "#7287fd"
},
"blocks": [{
"alignment": "left",
"segments": [{
"type": "text",
"style": "diamond",
"leading_diamond": "\ue0b6",
"foreground": "#ffffff",
"background": "#cc3802",
"template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}"
},
{
"type": "text",
"style": "powerline",
"foreground": "#ffffff",
"background": "#047e84",
"powerline_symbol": "\ue0b0",
"template": "{{ if .Env.PNPPSSITE }} \uf672 {{ .Env.PNPPSSITE }}{{ end }}"
},
{
"type": "text",
"style": "diamond",
"trailing_diamond": "\ue0b4",
"foreground": "#ffffff",
"background": "#047e84",
"template": "{{ if .Env.PNPPSSITE }}\u00A0{{ end }}"
}
],
"type": "rprompt"
},
{
"alignment": "left",
"segments": [{
"background": "#9A348E",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
"style": "diamond",
"template": "{{ .UserName }} ",
"type": "session"
},
{
"background": "#DA627D",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "folder"
},
"style": "powerline",
"template": " {{ .Path }} ",
"type": "path"
},
{
"foreground": "p:git-foreground",
"background": "p:git",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:git-modified{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:git-diverged{{ end }}",
"{{ if gt .Ahead 0 }}p:git-ahead{{ end }}",
"{{ if gt .Behind 0 }}p:git-behind{{ end }}"
],
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "\uE0A0 ",
"cherry_pick_icon": "\u2713 ",
"commit_icon": "\u25b7 ",
"fetch_status": true,
"merge_icon": "\u25f4 ",
"no_commits_icon": "[no commits]",
"rebase_icon": "\u2c62 ",
"tag_icon": "\u25b6 "
},
"style": "powerline",
"template": " {{ .HEAD }} {{ if and (eq .Ahead 0) (eq .Behind 0) }} \u2261 {{end}}{{ if gt .Ahead 0 }} \u2191 {{ .Ahead }}{{end}}{{ if gt .Behind 0 }} \u2193 {{ .Behind }}{{end}} {{ if .Working.Changed }}+{{ .Working.Added }} ~{{ .Working.Modified }} -{{ .Working.Deleted }} {{ end }}",
"type": "git"
},
{
"background": "#86BBD8",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"background": "#33658A",
"foreground": "#ffffff",
"properties": {
"time_format": "15:04"
},
"style": "diamond",
"template": " \ue780 {{ .CurrentDate | date .Format }} ",
"trailing_diamond": "\ue0b0",
"type": "time"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment