Skip to content

Instantly share code, notes, and snippets.

@7rebux
Created November 28, 2021 21:04
Show Gist options
  • Save 7rebux/6a56eb62bda160cc5582074ebfb6b956 to your computer and use it in GitHub Desktop.
Save 7rebux/6a56eb62bda160cc5582074ebfb6b956 to your computer and use it in GitHub Desktop.
My oh-my-posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{.Folder}}{{if .Root}} :: root{{end}} :: {{.Shell}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#9A348E",
"leading_diamond": "\uE0B6",
"trailing_diamond": "",
"properties": {
"prefix": "\uF2C0 ",
"display_host": false
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#DA627D",
"properties": {
"prefix": " \uF114 ",
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#FCA17D",
"properties": {
"fetch_stash_count": false,
"fetch_upstream_icon": false,
"fetch_status": false,
"branch_icon": "\uE0A0",
"template": "{{ .HEAD }}",
"prefix": " \uF09B \u279C "
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#86BBD8",
"properties": {
"prefix": " \uF898 "
}
},
{
"type": "time",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#33658A",
"properties": {
"prefix": " \uF64F ",
"time_format": "15:04"
}
},
{
"type": "exit",
"style": "diamond",
"trailing_diamond": "\uE0B0",
"foreground": "#ffffff",
"background": "#12c26a",
"background_templates": [
"{{ if gt .Code 0 }}#e01436{{ end }}"
],
"properties": {
"always_enabled": true,
"template": "{{ if gt .Code 0 }}\uF7D3{{ else }}\uF004{{ end }}"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment