summary refs log tree commit diff
path: root/dot_alen.omp.yaml
diff options
context:
space:
mode:
authorAlen <alen@dotfiles.xyz>2023-09-13 00:28:43 +0400
committerAlen <alen@dotfiles.xyz>2023-09-14 01:36:41 +0400
commit73ccf329640316f26305e6b0c8dc75956b370237 (patch)
tree10c2717e4b299b78118416dea93f54d9ccd3d8a5 /dot_alen.omp.yaml
parent96326bbd44e47f2485cb378401e7a198ec3092a4 (diff)
Add basic PowerShell profile
Diffstat (limited to 'dot_alen.omp.yaml')
-rw-r--r--dot_alen.omp.yaml75
1 files changed, 75 insertions, 0 deletions
diff --git a/dot_alen.omp.yaml b/dot_alen.omp.yaml
new file mode 100644
index 0000000..2caef42
--- /dev/null
+++ b/dot_alen.omp.yaml
@@ -0,0 +1,75 @@
+# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
+_anchors:
+  - &ltr 
+  - &rtl 
+final_space: true
+shell_integration: true
+version: 2
+blocks:
+  - type: prompt
+    alignment: left
+    newline: true
+    segments:
+      - type: os
+        style: diamond
+        background: white
+        foreground: black
+      - type: root
+        style: powerline
+        powerline_symbol: *ltr
+        background: red
+        foreground: yellow
+      - type: path
+        style: powerline
+        powerline_symbol: *ltr
+        background: blue
+        foreground: white
+      - type: git
+        style: powerline
+        powerline_symbol: *ltr
+        background: green
+        foreground: black
+      - type: text
+        style: powerline
+        powerline_symbol: *ltr
+  - type: prompt
+    alignment: right
+    segments:
+      - type: executiontime
+        style: powerline
+        powerline_symbol: *rtl
+        invert_powerline: true
+        background: red
+        foreground: white
+      - type: python
+        style: powerline
+        powerline_symbol: *rtl
+        invert_powerline: true
+        background: blue
+        foreground: black
+      - type: session
+        style: powerline
+        powerline_symbol: *rtl
+        invert_powerline: true
+        background: black
+        foreground: yellow
+      - type: time
+        style: diamond
+        invert_powerline: true
+        background: white
+        foreground: black
+  - type: prompt
+    alignment: left
+    newline: true
+    segments:
+      - type: status
+        style: diamond
+        trailing_diamond: *ltr
+        background: green
+        background_templates:
+          - "{{ if .Error }}red{{ end }}"
+        foreground: black
+        foreground_templates:
+          - "{{ if .Error }}white{{ end }}"
+        properties:
+          always_enabled: true