Skip to content

Instantly share code, notes, and snippets.

@PilotBob
Last active January 13, 2022 17:42
Show Gist options
  • Save PilotBob/238ac3784e4c0743721cafe324d29691 to your computer and use it in GitHub Desktop.
Save PilotBob/238ac3784e4c0743721cafe324d29691 to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"vertical_offset": 0,
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "",
"trailing_diamond": "\uE0B0",
"properties": {
"template": "{{ if .Root }} {{ end }}{{ .UserName }}"
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#0000ff" ,
"properties": {
"prefix": "  ",
"home_icon": "~",
"style": "agnoster_full",
"mapped_locations": {
"~/development": "\uFC82",
"~/projects": "\uFC82",
"~/dev": "\uFC82"
}
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#fffb38",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
],
"properties": {
"fetch_status": true,
"fetch_stash_count": true,
"fetch_upstream_icon": true,
"branch_max_length": 25,
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}"
}
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#512bd4",
"properties": {
"display_version": true,
"prefix": "  "
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"prefix": " \uF898 ",
"display_version": true
}
},
{
"type": "executiontime",
"style": "plain",
"foreground": "#ffffff",
"background": "#83769c",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"always_enabled": true,
"prefix": "<transparent>\uE0B0</> \ufbab",
"postfix": "\u2800"
}
},
{
"type": "exit",
"style": "diamond",
"foreground": "#ffffff",
"background": "#00897b",
"background_templates": ["{{ if gt .Code 0 }}#e91e63{{ end }}"],
"leading_diamond": "",
"trailing_diamond": "\uE0B4",
"properties": {
"always_enabled": true,
"template": "\uE23A",
"prefix": "<parentBackground>\uE0B0</> "
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "shell",
"style": "plain",
"foreground": "#ffffff",
"background": "#0077c2",
"properties": {
"prefix": "<#0077c2,transparent>\uE0B6</>  ",
"postfix": " <transparent,#0077c2>\uE0B2</>"
}
},
{
"type": "time",
"style": "diamond",
"invert_powerline": true,
"leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4",
"background": "#2e9599",
"foreground": "#111111"
}
]
},
{
"type": "prompt",
"newline": true,
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain",
"foreground": "#ffffff",
"background": "transparent",
"properties": {
"prefix": "",
"postfix": " \u276F"
}
}
]
}
],
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Shell }} in {{ .Folder }}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment