mirror of
https://github.com/cupcakearmy/dotfiles.git
synced 2024-12-22 16:26:32 +00:00
update omp config
This commit is contained in:
parent
d5f625c0f3
commit
3f2206716d
@ -1,156 +1,159 @@
|
|||||||
# 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
|
|
||||||
|
|
||||||
common:
|
|
||||||
diamond: &diamond
|
|
||||||
style: diamond
|
|
||||||
leading_diamond: ""
|
|
||||||
trailing_diamond: ""
|
|
||||||
diamond_prefix: &diamond_prefix
|
|
||||||
style: diamond
|
|
||||||
leading_diamond: ""
|
|
||||||
dynamic: &dynamic
|
|
||||||
style: dynamic
|
|
||||||
leading_diamond: ""
|
|
||||||
trailing_diamond: ""
|
|
||||||
background: "p:main-10"
|
|
||||||
foreground: "p:main-70"
|
|
||||||
powerline: &powerline
|
|
||||||
style: powerline
|
|
||||||
powerline_symbol: ""
|
|
||||||
|
|
||||||
blocks:
|
|
||||||
- alignment: left
|
|
||||||
segments:
|
|
||||||
- type: os
|
|
||||||
<<: *diamond_prefix
|
|
||||||
background: "p:main-5"
|
|
||||||
foreground: "p:main-70"
|
|
||||||
|
|
||||||
- type: root
|
|
||||||
template: " "
|
|
||||||
properties:
|
|
||||||
style: full
|
|
||||||
<<: *powerline
|
|
||||||
background: "p:error-15"
|
|
||||||
foreground: "p:main-70"
|
|
||||||
|
|
||||||
- type: path
|
|
||||||
template: " {{ .Path }} "
|
|
||||||
properties:
|
|
||||||
style: full
|
|
||||||
<<: *powerline
|
|
||||||
background: "p:main-40"
|
|
||||||
foreground: "p:main-0"
|
|
||||||
|
|
||||||
- type: git
|
|
||||||
template: " {{ .HEAD }} "
|
|
||||||
<<: *powerline
|
|
||||||
background: "p:warning-10"
|
|
||||||
foreground: "p:main-70"
|
|
||||||
type: prompt
|
|
||||||
|
|
||||||
- alignment: right
|
|
||||||
segments:
|
|
||||||
# ENVS
|
|
||||||
- type: python
|
|
||||||
<<: *dynamic
|
|
||||||
- type: go
|
|
||||||
<<: *dynamic
|
|
||||||
- type: node
|
|
||||||
<<: *dynamic
|
|
||||||
- type: kubectl
|
|
||||||
template: "{{ .Context }}{{ if .Namespace }}::{{ .Namespace }}{{ end }}"
|
|
||||||
<<: *dynamic
|
|
||||||
- type: docker
|
|
||||||
template: "{{ .Icon }} {{ .Server }}"
|
|
||||||
<<: *dynamic
|
|
||||||
- type: rust
|
|
||||||
<<: *dynamic
|
|
||||||
- type: battery
|
|
||||||
<<: *dynamic
|
|
||||||
|
|
||||||
# STATIC UTILITY
|
|
||||||
- type: exit
|
|
||||||
template: "{{ if gt .Code 0 }}\uf00d {{ .Code }} {{ .Meaning }}{{ else }}\uf42e{{ end }}"
|
|
||||||
properties:
|
|
||||||
always_enabled: true
|
|
||||||
<<: *diamond_prefix
|
|
||||||
foreground: "p:main-70"
|
|
||||||
background_templates:
|
|
||||||
- "{{ if gt .Code 0 }}p:error-0{{ else }}p:main-10{{ end }}"
|
|
||||||
|
|
||||||
- type: executiontime
|
|
||||||
properties:
|
|
||||||
style: round
|
|
||||||
always_enabled: true
|
|
||||||
<<: *powerline
|
|
||||||
background: "p:main-5"
|
|
||||||
foreground: "p:main-70"
|
|
||||||
|
|
||||||
- type: time
|
|
||||||
template: " {{ .CurrentDate | date .Format }} "
|
|
||||||
properties:
|
|
||||||
time_format: "15:04:05"
|
|
||||||
<<: *powerline
|
|
||||||
background: "p:main-0"
|
|
||||||
foreground: "p:main-70"
|
|
||||||
type: prompt
|
|
||||||
|
|
||||||
- alignment: left
|
|
||||||
newline: true
|
|
||||||
segments:
|
|
||||||
- foreground: "p:main-15"
|
|
||||||
foreground_templates:
|
|
||||||
- "{{ if gt .Code 0 }}p:error-15{{ end }}"
|
|
||||||
properties:
|
|
||||||
always_enabled: true
|
|
||||||
style: plain
|
|
||||||
template: "❯ "
|
|
||||||
type: exit
|
|
||||||
type: prompt
|
|
||||||
|
|
||||||
# https://colorbox.io/
|
|
||||||
# Generated by ./color
|
|
||||||
palette:
|
palette:
|
||||||
main-0: "#f7fbff"
|
error-0: '#ff4040'
|
||||||
main-5: "#d6e6fe"
|
error-10: '#e23629'
|
||||||
main-10: "#b4cafd"
|
error-15: '#d33220'
|
||||||
main-15: "#95a9fc"
|
error-20: '#c52e18'
|
||||||
main-20: "#7783fa"
|
error-30: '#a8280d'
|
||||||
main-30: "#5348f4"
|
error-40: '#8a2106'
|
||||||
main-40: "#4826e8"
|
error-5: '#f03a34'
|
||||||
main-50: "#3e10ca"
|
error-50: '#6d1b02'
|
||||||
main-60: "#22036e"
|
error-60: '#501401'
|
||||||
main-70: "#020008"
|
error-70: '#330d00'
|
||||||
error-0: "#ff4040"
|
main-0: '#f7fbff'
|
||||||
error-5: "#f03a34"
|
main-10: '#b4cafd'
|
||||||
error-10: "#e23629"
|
main-15: '#95a9fc'
|
||||||
error-15: "#d33220"
|
main-20: '#7783fa'
|
||||||
error-20: "#c52e18"
|
main-30: '#5348f4'
|
||||||
error-30: "#a8280d"
|
main-40: '#4826e8'
|
||||||
error-40: "#8a2106"
|
main-5: '#d6e6fe'
|
||||||
error-50: "#6d1b02"
|
main-50: '#3e10ca'
|
||||||
error-60: "#501401"
|
main-60: '#22036e'
|
||||||
error-70: "#330d00"
|
main-70: '#020008'
|
||||||
warning-0: "#ffff40"
|
success-0: '#40ff46'
|
||||||
warning-5: "#ecf034"
|
success-10: '#29e243'
|
||||||
warning-10: "#dae229"
|
success-15: '#20d342'
|
||||||
warning-15: "#c8d320"
|
success-20: '#18c541'
|
||||||
warning-20: "#b6c518"
|
success-30: '#0da83d'
|
||||||
warning-30: "#96a80d"
|
success-40: '#068a36'
|
||||||
warning-40: "#788a06"
|
success-5: '#34f044'
|
||||||
warning-50: "#5d6d02"
|
success-50: '#026d2d'
|
||||||
warning-60: "#435001"
|
success-60: '#015022'
|
||||||
warning-70: "#2a3300"
|
success-70: '#003316'
|
||||||
success-0: "#40ff46"
|
warning-0: '#ffff40'
|
||||||
success-5: "#34f044"
|
warning-10: '#dae229'
|
||||||
success-10: "#29e243"
|
warning-15: '#c8d320'
|
||||||
success-15: "#20d342"
|
warning-20: '#b6c518'
|
||||||
success-20: "#18c541"
|
warning-30: '#96a80d'
|
||||||
success-30: "#0da83d"
|
warning-40: '#788a06'
|
||||||
success-40: "#068a36"
|
warning-5: '#ecf034'
|
||||||
success-50: "#026d2d"
|
warning-50: '#5d6d02'
|
||||||
success-60: "#015022"
|
warning-60: '#435001'
|
||||||
success-70: "#003316"
|
warning-70: '#2a3300'
|
||||||
|
blocks:
|
||||||
|
- type: prompt
|
||||||
|
alignment: left
|
||||||
|
segments:
|
||||||
|
- leading_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-5
|
||||||
|
type: os
|
||||||
|
style: diamond
|
||||||
|
- properties:
|
||||||
|
style: full
|
||||||
|
template: " \uf0e7 "
|
||||||
|
foreground: p:main-70
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:error-15
|
||||||
|
type: root
|
||||||
|
style: powerline
|
||||||
|
- properties:
|
||||||
|
style: full
|
||||||
|
template: ' {{ .Path }} '
|
||||||
|
foreground: p:main-0
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:main-40
|
||||||
|
type: path
|
||||||
|
style: powerline
|
||||||
|
- template: ' {{ .HEAD }} '
|
||||||
|
foreground: p:main-70
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:warning-10
|
||||||
|
type: git
|
||||||
|
style: powerline
|
||||||
|
- type: prompt
|
||||||
|
alignment: right
|
||||||
|
segments:
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: python
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: go
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: node
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
template: '{{ .Context }}{{ if .Namespace }}::{{ .Namespace }}{{ end }}'
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: kubectl
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
template: '{{ .Icon }} {{ .Server }}'
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: docker
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: rust
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: battery
|
||||||
|
style: dynamic
|
||||||
|
- properties:
|
||||||
|
always_enabled: true
|
||||||
|
leading_diamond:
|
||||||
|
template: "{{ if gt .Code 0 }}\uf00d {{ .Code }} {{ .Meaning }}{{ else }}\uf42e{{ end }}"
|
||||||
|
foreground: p:main-70
|
||||||
|
type: status
|
||||||
|
style: diamond
|
||||||
|
background_templates:
|
||||||
|
- '{{ if gt .Code 0 }}p:error-0{{ else }}p:main-10{{ end }}'
|
||||||
|
- properties:
|
||||||
|
always_enabled: true
|
||||||
|
style: round
|
||||||
|
foreground: p:main-70
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:main-5
|
||||||
|
type: executiontime
|
||||||
|
style: powerline
|
||||||
|
- properties:
|
||||||
|
time_format: '15:04:05'
|
||||||
|
template: ' {{ .CurrentDate | date .Format }} '
|
||||||
|
foreground: p:main-70
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:main-0
|
||||||
|
type: time
|
||||||
|
style: powerline
|
||||||
|
- type: prompt
|
||||||
|
alignment: left
|
||||||
|
segments:
|
||||||
|
- properties:
|
||||||
|
always_enabled: true
|
||||||
|
template: '❯ '
|
||||||
|
foreground: p:main-15
|
||||||
|
type: status
|
||||||
|
style: plain
|
||||||
|
foreground_templates:
|
||||||
|
- '{{ if gt .Code 0 }}p:error-15{{ end }}'
|
||||||
|
newline: true
|
||||||
|
version: 3
|
||||||
|
Loading…
Reference in New Issue
Block a user