Skip to content

Instantly share code, notes, and snippets.

@mike6715b
Created November 13, 2022 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mike6715b/26469f453efd688e250504da9165de5a to your computer and use it in GitHub Desktop.
Save mike6715b/26469f453efd688e250504da9165de5a to your computer and use it in GitHub Desktop.
My personal OhMyPosh configuration
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "path",
"style": "diamond",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#ff479c",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b0",
"template": " \ue5ff {{ .Path }} ",
"properties": {
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#193549",
"background": "#fffb38",
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} ",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#6CA35E",
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} "
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#111111",
"background": "#ffff66",
"template": " \uf0e7 ",
"properties": {
"root_icon": "\uf0ad"
}
},
{
"type": "executiontime",
"style": "plain",
"foreground": "#ffffff",
"background": "#83769c",
"template": "<transparent>\ue0b0\ufa1e</>{{ .FormattedMs }} ",
"properties": {
"always_enabled": true
}
},
{
"type": "exit",
"style": "diamond",
"foreground": "#ffffff",
"background": "#2e9599",
"background_templates": [
"{{ if gt .Code 0 }}#f1184c{{ end }}"
],
"trailing_diamond": "\ue0b4",
"template": "<#83769c>\ue0b0</> \ue23a{{ if gt .Code 0 }}\uf00d{{ else }}\uf42e{{ end }} ",
"properties": {
"always_enabled": true
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment