diff options
author | claw0ry <me@claw0ry.net> | 2024-12-11 13:58:21 +0100 |
---|---|---|
committer | claw0ry <me@claw0ry.net> | 2024-12-11 13:58:21 +0100 |
commit | b56b0d3ca316395a903ed1c7a040bda0ae321c36 (patch) | |
tree | da8a7e975f0f426095350403dc3b39f4fd1ad5dd /oh-my-posh/config.yml |
fresh start
Diffstat (limited to 'oh-my-posh/config.yml')
-rw-r--r-- | oh-my-posh/config.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/oh-my-posh/config.yml b/oh-my-posh/config.yml new file mode 100644 index 0000000..77b0b3c --- /dev/null +++ b/oh-my-posh/config.yml @@ -0,0 +1,49 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json +final_space: true +version: 2 +blocks: + - type: prompt + alignment: left + segments: + - type: text + style: plain + foreground: magenta + template: "[{{ .Shell }}]" + - type: python + style: plain + foreground: yellow + template: "[{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }}{{ end }}{{ end }}]" + - type: path + style: plain + foreground: cyan + properties: + style: letter + - type: git + style: plain + foreground: green + template: "({{ .HEAD }})" + properties: + branch_icon: "" + - type: prompt + alignment: right + segments: + - type: executiontime + style: plain + foreground: 'cyan' + template: "[{{ .FormattedMs }}]" + properties: + style: austin + threshold: 500 + - type: time + style: plain + foreground: yellow + - type: prompt + alignment: left + newline: true + segments: + - type: text + style: plain + template: "$" + foreground: green + foreground_templates: + - '{{ if gt .Code 0 }}red{{ end }}' |