Auto-Update config version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
db8439a113
commit
088c796563
1 changed files with 139 additions and 153 deletions
|
@ -1,156 +1,142 @@
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||||
|
|
||||||
|
palette:
|
||||||
|
black: "#262B44"
|
||||||
|
blue: "#4B95E9"
|
||||||
|
darkblue: "#0b1052"
|
||||||
|
gray: "#333333"
|
||||||
|
green: "#00bc00"
|
||||||
|
orange: "#F07623"
|
||||||
|
red: "#c91b00"
|
||||||
|
white: "#E0DEF4"
|
||||||
|
yellow: "#f4f400"
|
||||||
|
console_title_template: "{{ .UserName }}@{{ .HostName }} ➜ {{ .Segments.Shortpath.Output }}"
|
||||||
blocks:
|
blocks:
|
||||||
- type: prompt
|
- type: prompt
|
||||||
alignment: left
|
alignment: left
|
||||||
newline: true
|
|
||||||
segments:
|
segments:
|
||||||
- type: time
|
- leading_diamond: "<#666>[</> "
|
||||||
style: diamond
|
trailing_diamond: "<#666> ]</>"
|
||||||
leading_diamond: &ld '<#666>[</> '
|
template: "{{ .CurrentDate | date \"15:04:05\" }}"
|
||||||
trailing_diamond: &td '<#666> ]</>'
|
|
||||||
foreground: p:white
|
foreground: p:white
|
||||||
template: '{{ .CurrentDate | date "15:04:05" }}'
|
type: time
|
||||||
|
|
||||||
- type: session
|
|
||||||
style: diamond
|
style: diamond
|
||||||
leading_diamond: *ld
|
- leading_diamond: "<#666>[</> "
|
||||||
trailing_diamond: *td
|
trailing_diamond: "<#666> ]</>"
|
||||||
|
template: "{{ .UserName }}{{ if .SSHSession }}@{{ .HostName }}{{ end }}"
|
||||||
foreground: p:green
|
foreground: p:green
|
||||||
template: '{{ .UserName }}{{ if .SSHSession }}@{{ .HostName }}{{ end }}'
|
type: session
|
||||||
|
|
||||||
- type: command
|
|
||||||
style: diamond
|
style: diamond
|
||||||
leading_diamond: *ld
|
- properties:
|
||||||
trailing_diamond: *td
|
command: ~/bin/config-git-status.sh && echo "unmod" || echo "mod"
|
||||||
foreground: p:red
|
|
||||||
properties:
|
|
||||||
command: '~/bin/config-git-status.sh && echo "unmod" || echo "mod"'
|
|
||||||
shell: bash
|
shell: bash
|
||||||
template: '{{ if eq .Output "mod" }}{{ end }}'
|
leading_diamond: "<#666>[</> "
|
||||||
|
trailing_diamond: "<#666> ]</>"
|
||||||
- type: kubectl
|
template: "{{ if eq .Output \"mod\" }}\uf00d{{ end }}"
|
||||||
|
foreground: p:red
|
||||||
|
type: command
|
||||||
style: diamond
|
style: diamond
|
||||||
leading_diamond: *ld
|
- leading_diamond: "<#666>[</> "
|
||||||
trailing_diamond: *td
|
trailing_diamond: "<#666> ]</>"
|
||||||
|
template: "{{ .Context }}"
|
||||||
foreground: p:white
|
foreground: p:white
|
||||||
foreground_templates:
|
type: kubectl
|
||||||
- '{{ if eq .Context "int" }}p:yellow{{ end }}'
|
|
||||||
- '{{ if eq .Context "minikube" }}p:green{{ end }}'
|
|
||||||
- '{{ if eq .Context "prod" }}p:red{{ end }}'
|
|
||||||
template: '{{ .Context }}'
|
|
||||||
|
|
||||||
- type: command
|
|
||||||
alias: ShortPath
|
|
||||||
style: diamond
|
style: diamond
|
||||||
leading_diamond: *ld
|
foreground_templates:
|
||||||
trailing_diamond: *td
|
- "{{ if eq .Context \"int\" }}p:yellow{{ end }}"
|
||||||
foreground: p:yellow
|
- "{{ if eq .Context \"minikube\" }}p:green{{ end }}"
|
||||||
properties:
|
- "{{ if eq .Context \"prod\" }}p:red{{ end }}"
|
||||||
|
- properties:
|
||||||
command: short_path
|
command: short_path
|
||||||
template: '{{ .Output }}'
|
alias: ShortPath
|
||||||
|
leading_diamond: "<#666>[</> "
|
||||||
- type: exit
|
trailing_diamond: "<#666> ]</>"
|
||||||
|
template: "{{ .Output }}"
|
||||||
|
foreground: p:yellow
|
||||||
|
type: command
|
||||||
style: diamond
|
style: diamond
|
||||||
leading_diamond: *ld
|
- properties:
|
||||||
trailing_diamond: *td
|
|
||||||
foreground: p:white
|
|
||||||
foreground_templates:
|
|
||||||
- '{{ if gt .Code 0 }}p:red{{ end }}'
|
|
||||||
properties:
|
|
||||||
always_enabled: false
|
always_enabled: false
|
||||||
template: '{{ if gt .Code 0 }}{{ .Code }}{{ else }}{{ end }}'
|
leading_diamond: "<#666>[</> "
|
||||||
|
trailing_diamond: "<#666> ]</>"
|
||||||
- type: text
|
template: "{{ if gt .Code 0 }}{{ .Code }}{{ else }}\uf00c{{ end }}"
|
||||||
|
foreground: p:white
|
||||||
|
type: exit
|
||||||
|
style: diamond
|
||||||
|
foreground_templates:
|
||||||
|
- "{{ if gt .Code 0 }}p:red{{ end }}"
|
||||||
|
- template:
|
||||||
|
type: text
|
||||||
style: plain
|
style: plain
|
||||||
template: "\u200b"
|
newline: true
|
||||||
|
- type: prompt
|
||||||
- type: prompt
|
|
||||||
alignment: right
|
alignment: right
|
||||||
overflow: hide
|
overflow: hide
|
||||||
segments:
|
segments:
|
||||||
- type: executiontime
|
- properties:
|
||||||
style: diamond
|
|
||||||
leading_diamond: *ld
|
|
||||||
trailing_diamond: *td
|
|
||||||
properties:
|
|
||||||
style: austin
|
style: austin
|
||||||
template: '{{ .FormattedMs }}'
|
leading_diamond: "<#666>[</> "
|
||||||
|
trailing_diamond: "<#666> ]</>"
|
||||||
- type: git
|
template: "{{ .FormattedMs }}"
|
||||||
|
type: executiontime
|
||||||
style: diamond
|
style: diamond
|
||||||
leading_diamond: *ld
|
- properties:
|
||||||
trailing_diamond: *td
|
bitbucket_icon:
|
||||||
foreground: p:green
|
branch_icon: ""
|
||||||
foreground_templates:
|
|
||||||
- '{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}'
|
|
||||||
- '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}'
|
|
||||||
- '{{ if gt .Ahead 0 }}#8173bf{{ end }}'
|
|
||||||
- '{{ if gt .Behind 0 }}#bd4ba7{{ end }}'
|
|
||||||
properties:
|
|
||||||
bitbucket_icon: "\ue703"
|
|
||||||
branch_icon: ''
|
|
||||||
branch_max_length: 25
|
branch_max_length: 25
|
||||||
fetch_status: true
|
fetch_status: true
|
||||||
fetch_upstream_icon: true
|
fetch_upstream_icon: true
|
||||||
github_icon: "\ue709"
|
git_icon:
|
||||||
git_icon: "\uf1d3"
|
github_icon:
|
||||||
gitlab_icon: "\uf296"
|
gitlab_icon:
|
||||||
templates:
|
leading_diamond: "<#666>[</> "
|
||||||
- '{{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}'
|
trailing_diamond: "<#666> ]</>"
|
||||||
- '{{ .HEAD }} ({{ .ShortHash }})'
|
foreground: p:green
|
||||||
- '{{ if .BranchStatus }} {{ .BranchStatus }}{{ end }}'
|
type: git
|
||||||
- '{{ if .Working.Changed }} {{ .Working.String }}{{ end }}'
|
|
||||||
- '{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}'
|
|
||||||
|
|
||||||
- type: prompt
|
|
||||||
alignment: left
|
|
||||||
newline: true
|
|
||||||
segments:
|
|
||||||
- type: text
|
|
||||||
style: plain
|
|
||||||
foreground: p:yellow
|
|
||||||
template: "<#666>#</>"
|
|
||||||
|
|
||||||
- type: text
|
|
||||||
style: hidden
|
|
||||||
foreground: p:red
|
|
||||||
template: "{{ .Segments }}"
|
|
||||||
|
|
||||||
console_title_template: "{{ .UserName }}@{{ .HostName }} \u279c {{ .Segments.Shortpath.Output }}"
|
|
||||||
|
|
||||||
final_space: true
|
|
||||||
|
|
||||||
palette:
|
|
||||||
black: '#262B44'
|
|
||||||
blue: '#4B95E9'
|
|
||||||
gray: '#333333'
|
|
||||||
green: '#00bc00'
|
|
||||||
orange: '#F07623'
|
|
||||||
red: '#c91b00'
|
|
||||||
white: '#E0DEF4'
|
|
||||||
yellow: '#f4f400'
|
|
||||||
darkblue: '#0b1052'
|
|
||||||
|
|
||||||
tooltips:
|
|
||||||
- type: aws
|
|
||||||
style: diamond
|
style: diamond
|
||||||
leading_diamond: &ttld
|
foreground_templates:
|
||||||
trailing_diamond: &tttd
|
- "{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}"
|
||||||
background: p:orange
|
- "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}"
|
||||||
foreground: p:white
|
- "{{ if gt .Ahead 0 }}#8173bf{{ end }}"
|
||||||
properties:
|
- "{{ if gt .Behind 0 }}#bd4ba7{{ end }}"
|
||||||
|
templates:
|
||||||
|
- "{{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}"
|
||||||
|
- "{{ .HEAD }} ({{ .ShortHash }})"
|
||||||
|
- "{{ if .BranchStatus }} {{ .BranchStatus }}{{ end }}"
|
||||||
|
- "{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}"
|
||||||
|
- "{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}"
|
||||||
|
- type: prompt
|
||||||
|
alignment: left
|
||||||
|
segments:
|
||||||
|
- template: "<#666>#</>"
|
||||||
|
foreground: p:yellow
|
||||||
|
type: text
|
||||||
|
style: plain
|
||||||
|
- template: "{{ .Segments }}"
|
||||||
|
foreground: p:red
|
||||||
|
type: text
|
||||||
|
style: hidden
|
||||||
|
newline: true
|
||||||
|
tooltips:
|
||||||
|
- properties:
|
||||||
display_default: true
|
display_default: true
|
||||||
template: ' {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} '
|
leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
template: " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} "
|
||||||
|
foreground: p:white
|
||||||
|
background: p:orange
|
||||||
|
type: aws
|
||||||
|
style: diamond
|
||||||
tips:
|
tips:
|
||||||
- aws
|
- aws
|
||||||
|
- leading_diamond:
|
||||||
- type: az
|
trailing_diamond:
|
||||||
style: diamond
|
template: " ﴃ {{ .Name }} "
|
||||||
leading_diamond: *ttld
|
|
||||||
trailing_diamond: *tttd
|
|
||||||
background: p:blue
|
|
||||||
foreground: p:white
|
foreground: p:white
|
||||||
template: ' ﴃ {{ .Name }} '
|
background: p:blue
|
||||||
|
type: az
|
||||||
|
style: diamond
|
||||||
tips:
|
tips:
|
||||||
- az
|
- az
|
||||||
|
version: 3
|
||||||
version: 2
|
final_space: true
|
||||||
|
|
Loading…
Reference in a new issue