aboutsummaryrefslogtreecommitdiff
path: root/oh-my-posh
diff options
context:
space:
mode:
Diffstat (limited to 'oh-my-posh')
-rw-r--r--oh-my-posh/config.yml49
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 }}'