umstrukturiert

This commit is contained in:
Christopher Beckmann
2023-05-26 17:00:58 +02:00
parent 1b227a5892
commit 4f35a25c10
16 changed files with 10 additions and 23 deletions

129
.config/omp/omp.json Normal file
View File

@@ -0,0 +1,129 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "p:tertiary",
"background_templates": [
"{{ if .Root }}#FF0000{{ end }}"
],
"foreground": "p:tertiary_font",
"style": "plain",
"template": " {{ .UserName }}{{ if .SSHSession }}@{{.HostName }}{{ end }} {{ if .Root }}<#FF0000,p:secondary>{{ else }}<p:tertiary,p:secondary>{{ end }}</>",
"type": "session"
},
{
"foreground": "p:secondary_font",
"background": "p:secondary",
"style": "plain",
"powerline_symbol": "",
"properties": {
"style": "full"
},
"template": " {{ .Path }} <p:secondary,transparent></>",
"type": "path",
"min_width": 80
},
{
"foreground": "p:secondary_font",
"background": "p:secondary",
"style": "plain",
"powerline_symbol": "",
"properties": {
"style": "agnoster",
"folder_icon": "",
"mixed_threshold": 2
},
"template": " {{ .Path }} <p:secondary,transparent></>",
"type": "path",
"max_width": 79
},
{
"foreground": "p:tertiary_font",
"background": "p:tertiary",
"style": "powerline",
"powerline_symbol": "",
"template": "{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }} ",
"properties": {
"fetch_status": true,
"fetch_upstream_icon": true
},
"type": "git",
"min_width": 80
},
{
"type": "executiontime",
"style": "plain",
"foreground": "p:secondary_font",
"background": "transparent",
"template": " {{ .FormattedMs }} ",
"properties": {
"threshold": 1000,
"style": "roundrock"
}
},
{
"foreground": "p:accent",
"background": "transparent",
"foreground_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
],
"properties": {
"always_enabled": true
},
"style": "plain",
"template": "",
"type": "exit"
}
],
"type": "prompt"
}
],
"tooltips": [
{
"type": "git",
"tips": [
"git",
"g"
],
"style": "powerline",
"foreground": "p:tertiary_front",
"background": "p:tertiary",
"powerline_symbol": "",
"template": " {{ .HEAD }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }} ",
"properties": {
"fetch_status": true,
"fetch_upstream_icon": true
},
"max_width": 79
}
],
"transient_prompt_backup": {
"background": "p:secondary",
"foreground_templates": [
"{{ if .Root }}#FF0000{{ end }}"
],
"foreground": "p:tertiary",
"template": "<p:secondary_font> {{ .PWD }} </><p:secondary,transparent></>"
},
"secondary_prompt": {
"background": "p:secondary",
"foreground_templates": [
"{{ if .Root }}#FF0000{{ end }}"
],
"foreground": "p:tertiary",
"template": "<p:secondary_font> </><p:secondary,transparent></><p:accent,transparent> </>"
},
"final_space": true,
"version": 2,
"palette": {
"accent": "#0ca8fb",
"secondary": "#011f2a",
"tertiary": "#0f63bd",
"accent_font": "#000000",
"secondary_font": "#FFFFFF",
"tertiary_font": "#FFFFFF"
}
}