# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
_anchors:
  - &ltr 
  - &rtl 
final_space: true
shell_integration: true
version: 2
blocks:
  - type: prompt
    alignment: left
    newline: true
    segments:
      - type: os
        style: diamond
        background: white
        foreground: black
      - type: root
        style: powerline
        powerline_symbol: *ltr
        background: red
        foreground: yellow
      - type: path
        style: powerline
        powerline_symbol: *ltr
        background: blue
        foreground: white
      - type: git
        style: powerline
        powerline_symbol: *ltr
        background: green
        foreground: black
      - type: text
        style: powerline
        powerline_symbol: *ltr
  - type: prompt
    alignment: right
    segments:
      - type: executiontime
        style: powerline
        powerline_symbol: *rtl
        invert_powerline: true
        background: red
        foreground: white
      - type: python
        style: powerline
        powerline_symbol: *rtl
        invert_powerline: true
        background: blue
        foreground: black
      - type: session
        style: powerline
        powerline_symbol: *rtl
        invert_powerline: true
        background: black
        foreground: yellow
      - type: time
        style: diamond
        invert_powerline: true
        background: white
        foreground: black
  - type: prompt
    alignment: left
    newline: true
    segments:
      - type: status
        style: diamond
        trailing_diamond: *ltr
        background: green
        background_templates:
          - "{{ if .Error }}red{{ end }}"
        foreground: black
        foreground_templates:
          - "{{ if .Error }}white{{ end }}"
        properties:
          always_enabled: true