dotfiles/home/private_dot_config/omp/config.yml

99 lines
2.7 KiB
YAML
Raw Permalink 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: " "
2024-06-11 11:57:40 -05:00
palette:
rosewater: '#f5e0dc'
sky: '#89dceb'
2024-06-10 10:35:21 -05:00
final_space: true
2024-06-20 13:43:42 -05:00
shell_integration: true
2024-08-10 18:28:41 -05:00
disable_notice: true
2024-06-10 10:35:21 -05:00
blocks:
- type: prompt
alignment: left
segments:
2024-06-11 11:57:40 -05:00
# language segments
2024-06-10 10:35:21 -05:00
- type: python
style: plain
foreground: "yellow"
2024-06-11 11:57:40 -05:00
template: " {{ .Full }} "
- type: go
style: plain
foreground: "cyan"
template: " {{ .Full }} "
- type: rust
style: plain
foreground: "red"
template: " {{ .Full }} "
- type: node
style: plain
foreground: "p:sky"
template: " {{ .Full }} "
- type: project
style: plain
foreground: "p:rosewater"
template: >
2024-06-13 13:04:51 -05:00
{{ if .Error }} {{ .Error }}{{ else -}}
{{ if .Version }} {{.Version}}{{ end -}}
{{ if .Name }} {{ .Name }} {{ end }}{{ end -}}
2024-06-10 10:35:21 -05:00
- type: git
2024-06-10 10:54:38 -05:00
foreground: magenta
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-11 11:57:40 -05:00
{{ .UpstreamIcon }}{{ .HEAD }}{{ if .BranchStatus }} {{ .BranchStatus }}{{ end -}}
2024-06-10 10:54:38 -05:00
{{ if .Working.Changed }}  {{ .Working.String }}{{ 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
2024-06-13 16:22:05 -05:00
style: plain
2024-06-10 10:35:21 -05:00
foreground: 'cyan'
properties:
2024-06-13 16:22:05 -05:00
style: unique
2024-06-10 10:35:21 -05:00
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: >
2024-06-13 16:22:05 -05:00
{{ if .SSHSession }} {{ .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