Update oh-my-posh theme

This commit is contained in:
2024-11-10 14:22:12 -10:00
parent ae30ae36eb
commit f844597dbd

View File

@@ -1,131 +1,117 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json # yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 2
blocks: blocks:
- type: prompt - type: prompt
alignment: left alignment: left
newline: true
segments: segments:
- type: text - template: ╭─
style: plain
template: ╭─
foreground: "#585858" foreground: "#585858"
type: text
- type: os
style: plain style: plain
template: " {{ if .WSL }}WSL at {{ end }}{{.Icon}} " - template: " {{ if .WSL }}WSL at {{ end }}{{.Icon}} "
background: "#303030"
foreground: "#26C6DA" foreground: "#26C6DA"
background: "#303030"
- type: text type: os
style: plain style: plain
template: - template:
background: parentBackground
foreground: "#8a8a8a" foreground: "#8a8a8a"
- type: path
style: plain
template: ' {{ if eq .PWD "~" }} {{ else }} {{ end }}{{ .Parent }}'
background: parentBackground background: parentBackground
type: text
style: plain
- template: " {{ if eq .PWD \"~\" }}\uf015 {{ else }}\uf07c {{ end }}{{ .Parent }}"
foreground: "#0087af" foreground: "#0087af"
background: parentBackground
- type: path type: path
style: plain style: plain
template: "<b>{{ .Path }}</b> " - properties:
properties:
style: folder style: folder
background: parentBackground template: "<b>{{ .Path }}</b> "
foreground: "#00afff" foreground: "#00afff"
- type: git
style: plain
template: "<#8a8a8a></> {{ if .UpstreamIcon}}{{ .UpstreamIcon }}{{ else }} {{ end }}{{ .HEAD }}{{ if .Working.Changed }} <#00afff>{{ .Working.String }}</>{{ end }} "
background: parentBackground background: parentBackground
foreground: "#5fd700" type: path
properties:
branch_icon: "<b> </b>"
git_icon: " "
github_icon: " "
gitlab_icon: " "
fetch_upstream_icon: true
fetch_status: true
- type: text
style: plain style: plain
template: - properties:
background: transparent branch_icon: <b> </b>
fetch_status: true
fetch_upstream_icon: true
git_icon: "\uf1d3 "
github_icon: "\uf09b "
gitlab_icon: "\uf296 "
template: "<#8a8a8a>\ue0b1</> {{ if .UpstreamIcon}}{{ .UpstreamIcon }}{{ else }}\uf1d3 {{ end }}{{ .HEAD }}{{ if .Working.Changed }} <#00afff>{{ .Working.String }}</>{{ end }} "
foreground: "#5fd700"
background: parentBackground
type: git
style: plain
- template:
foreground: parentBackground foreground: parentBackground
background: transparent
type: text
style: plain
newline: true
- type: prompt - type: prompt
alignment: right alignment: right
filler: "<#585858>-</>" filler: "<#585858>-</>"
segments: segments:
- type: text - template:
style: plain
template: ""
background: transparent
foreground: parentForeground foreground: parentForeground
background: transparent
- type: status type: text
style: plain style: plain
template: " {{ if eq .Code 0 }}<#5faf00>✔</>{{ else }}{{.String}} ✘{{ end }}" - properties:
background: parentForeground
foreground: "#d70000"
properties:
always_enabled: true always_enabled: true
status_template: "{{ if eq .Code 130 }}INT{{ else if .eq Code 131}}QUIT{{ else if eq .Code 137 }}KILL{{ end }}" status_template: "{{ if eq .Code 130 }}INT{{ else if .eq Code 131}}QUIT{{ else if eq .Code 137 }}KILL{{ end }}"
template: " {{ if eq .Code 0 }}<#5faf00>✔</>{{ else }}{{.String}} ✘{{ end }}"
- type: python foreground: "#d70000"
background: parentForeground
type: status
style: plain style: plain
template: " <#8a8a8a></> {{ .Venv }} " - properties:
background: parentBackground
foreground: "#00afaf"
properties:
fetch_virtual_env: true
display_mode: environment display_mode: environment
fallback_names: default_venv_names:
- "env" - env
fetch_virtual_env: true
- type: executiontime template: " <#8a8a8a>\ue0b3</> {{ .Venv }} \ue73c"
style: plain foreground: "#00afaf"
template: " <#8a8a8a></> {{ .FormattedMs }} "
background: parentBackground background: parentBackground
foreground: "#a8a8a8" type: python
properties: style: plain
- properties:
style: round style: round
threshold: 5000 threshold: 5000
template: " <#8a8a8a>\ue0b3</> {{ .FormattedMs }} \uf252"
- type: session foreground: "#a8a8a8"
style: plain
template: "{{ if .SSHSession }} <#8a8a8a></> {{ .UserName }}@{{ .HostName }}{{ end }}"
background: parentBackground background: parentBackground
type: executiontime
style: plain
- template: "{{ if .SSHSession }} <#8a8a8a>\ue0b3</> {{ .UserName }}@{{ .HostName }}{{ end }}"
foreground: "#d7af87" foreground: "#d7af87"
- type: time
style: plain
template: " <#8a8a8a></> {{ .CurrentDate | date .Format }} \uf017 "
properties:
time_format: "15:04:05"
background: parentBackground background: parentBackground
foreground: "#5f8787" type: session
- type: text
style: plain style: plain
template: "─╮" - properties:
background: transparent time_format: "15:04:05"
template: " <#8a8a8a>\ue0b3</> {{ .CurrentDate | date .Format }} \uf017 "
foreground: "#5f8787"
background: parentBackground
type: time
style: plain
- template: ─╮
foreground: "#585858" foreground: "#585858"
background: transparent
type: text
style: plain
- type: prompt - type: prompt
alignment: left alignment: left
segments: segments:
- type: text - template: "╰─ "
style: plain
foreground: "#585858" foreground: "#585858"
template: "╰─ " type: text
style: plain
newline: true newline: true
- type: rprompt - type: rprompt
segments: segments:
- type: text - template: ─╯
style: plain
foreground: "#585858" foreground: "#585858"
template: "─╯" type: text
style: plain
version: 3