feat: added zsh files

This commit is contained in:
oxypomme
2025-06-02 10:49:54 +02:00
parent e45db90e8b
commit d20153bac0
2 changed files with 287 additions and 0 deletions

124
.p10k.omp.json Normal file
View File

@@ -0,0 +1,124 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"secondary_prompt": {
"template": " ",
"foreground": "#ffffff",
"background": "transparent"
},
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"trailing_diamond": "\ue0b0",
"template": " {{.Icon}} ",
"foreground": "#FFF",
"background": "233",
"type": "os",
"style": "diamond"
},
{
"properties": {
"cache_duration": "none",
"style": "full"
},
"trailing_diamond": "\ue0b0",
"template": " {{ .Path }} ",
"foreground": "#26C6DA",
"background": "236",
"type": "path",
"style": "diamond"
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"properties": {
"cache_duration": "none",
"time_format": "15:03"
},
"leading_diamond": "\ue0b2",
"template": " {{ .CurrentDate | date .Format }} \uf017 ",
"foreground": "#597E7E",
"background": "233",
"type": "time",
"style": "diamond"
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"always_enabled": true,
"cache_duration": "none"
},
"template": " ",
"foreground": "#5ACA00",
"type": "status",
"style": "plain",
"foreground_templates": [
"{{ if gt .Code 0 }}#FF5252{{ end }}"
]
}
],
"newline": true
},
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"properties": {
"fetch_package_manager": true,
"pnpm_icon": "",
"yarn_icon": "",
"npm_icon": "(npm)"
},
"leading_diamond": "\ue0b2",
"template": " 󰎙 {{ .Full }} {{if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ else }}{{ if .PackageManagerName }}({{ .PackageManagerName }}){{ end }}{{ end }}",
"foreground": "#4D9D0F",
"foreground_templates": [
"{{ if .Mismatch }}#FFEB3B{{ end }}"
],
"background": "236",
"type": "node",
"style": "diamond"
},
{
"properties": {
"fetch_status": true,
"source": "cli",
"mapped_branches": {
"feature/*": " 🚀 ",
"hotfix/*": " 🚑️ ",
"bug/*": " 🐛 "
}
},
"leading_diamond": "\ue0b2",
"background": "233",
"foreground": "#597E7E",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FB{{ end }}"
],
"type": "git",
"template": " {{ .HEAD }} {{if .BranchStatus }}{{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }}{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} ",
"style": "diamond"
}
]
}
],
"version": 3
}