Skip to content

Instantly share code, notes, and snippets.

@sajermann
Last active January 4, 2023 00:30
Show Gist options
  • Save sajermann/ce90951b2dea8d22716fa2b11d925303 to your computer and use it in GitHub Desktop.
Save sajermann/ce90951b2dea8d22716fa2b11d925303 to your computer and use it in GitHub Desktop.
{
"$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": "node",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"npm_icon": "\ue71e",
"fetch_package_manager": true
}
},
{
"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 }} ",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
}
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#4B78FF",
"template": " \ue70c {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ",
"properties": {
"fetch_version": true
}
}
]
},
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "sysinfo",
"style": "powerline",
"foreground": "#ffffff",
"background": "#8f43f3",
"template": " \uf85a {{ round .PhysicalPercentUsed .Precision }}% ",
"properties": {
"precision": 2
}
},
{
"type": "az",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#000000",
"background": "#9ec3f0",
"template": " \ufd03 {{ .Name }} "
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment