feat: added zsh config

This commit is contained in:
oxypomme
2025-06-02 18:30:26 +02:00
commit e4cf797885
2 changed files with 241 additions and 0 deletions

86
.p10k.omp.json Normal file
View File

@@ -0,0 +1,86 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "diamond",
"foreground": "#FFF",
"background": "233",
"trailing_diamond": "\ue0b0",
"template": " {{.Icon}} "
},
{
"type": "path",
"style": "diamond",
"foreground": "#26C6DA",
"background": "236",
"trailing_diamond": "\ue0b0",
"template": " {{ .Path }} ",
"properties": {
"style": "full"
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "time",
"style": "diamond",
"foreground": "#597E7E",
"background": "233",
"leading_diamond": "\ue0b2",
"template": " {{ .CurrentDate | date .Format }} \uf017 ",
"properties": {
"time_format": "15:03"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "status",
"style": "plain",
"foreground": "#5ACA00",
"foreground_templates": [
"{{ if gt .Code 0 }}#FF5252{{ end }}"
],
"template": " ",
"properties": {
"always_enabled": true
}
}
],
"newline": true
},
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "git",
"style": "diamond",
"foreground": "#4D9D0F",
"background": "236",
"leading_diamond": "\ue0b2",
"template": " {{ .HEAD }} "
}
]
}
],
"secondary_prompt": {
"background": "transparent",
"foreground": "#ffffff",
"template": " "
}
}