dotfiles/home/private_dot_config/omp/config.yml

80 lines
2.4 KiB
YAML
Raw Normal View History

2024-06-10 10:35:21 -05:00
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 2
transient_prompt:
foreground: cyan
background: transparent
template: " "
final_space: true
blocks:
- type: prompt
alignment: left
segments:
- type: python
style: plain
foreground: "yellow"
template: " {{ .Full }}"
- type: git
2024-06-10 10:54:38 -05:00
foreground: magenta
# foreground_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 }}'
2024-06-10 10:35:21 -05:00
properties:
branch_max_length: 25
fetch_stash_count: true
fetch_status: true
fetch_upstream_icon: true
style: plain
template: >
2024-06-10 10:54:38 -05:00
{{ .UpstreamIcon }}{{ .HEAD }}{{ if .BranchStatus }}{{ .BranchStatus }}{{ end -}}
{{ if .Working.Changed }}  {{ .Working.String }}{{ end -}}
{{ if and (.Working.Changed) (.Staging.Changed) }}|{{ end -}}
{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end -}}
{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end -}}
2024-06-10 10:35:21 -05:00
- type: prompt
alignment: left
newline: true
segments:
- type: path
foreground: 'cyan'
properties:
style: full
style: plain
template:  {{ .Path }}
- type: prompt
alignment: right
segments:
- type: status
style: plain
foreground: 'green'
foreground_templates:
- '{{ if gt .Code 0 }}red{{ end }}'
2024-06-10 11:13:02 -05:00
template: ' x{{ reason .Code }} '
2024-06-10 10:54:38 -05:00
- type: executiontime
style: plain
foreground: 'green'
2024-06-10 10:35:21 -05:00
foreground_templates:
- '{{ if gt .Code 0 }}red{{ end }}'
properties:
2024-06-10 10:54:38 -05:00
style: austin
2024-06-10 10:35:21 -05:00
template: ' {{ .FormattedMs }} '
2024-06-10 10:54:38 -05:00
- type: session
style: plain
foreground: darkGray
template: >
{{ if .SSHSession }} {{ .UserName}}@{{ .HostName }}{{ end }}
2024-06-10 10:35:21 -05:00
- type: prompt
alignment: left
newline: true
segments:
- foreground: 'red'
style: plain
template: '!'
type: root
- foreground: 'green'
style: plain
template:
type: text