summaryrefslogtreecommitdiff
path: root/.config/ohmyposh/tokyocat.omp.yml
blob: 18dc84ead88e0115677625a778da5bb13380a96c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
# Created by Kyren223 on GitHub https://github.com/Kyren223
# File hosted on GitHub at https://github.com/Kyren223/dotfiles/blob/master/.config/ohmyposh/tokyocat.omp.yml

version: 2
final_space: true

blocks:
  - type: prompt
    alignment: left
    newline: true
    segments:
      - type: path
        style: diamond
        leading_diamond: "\ue0b6"
        trailing_diamond: "\ue0b4"
        template: "{{ .Path }}"
        background: p:black
        foreground: p:blue
        properties:
          style: full

      - type: git
        style: diamond
        trailing_diamond: "\ue0b4"
        background: p:black
        foreground: p:blue
        template: " {{ .HEAD }}{{ if .Working.Changed }}   {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }}   {{ .Staging.String }}{{ end }}{{ if and (or (.Working.Changed) (.Staging.Changed)) (or (gt .Ahead 0) (gt .Behind 0)) }} | {{ else }} {{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}"
        properties:
          fetch_status: true
          branch_icon: " "
          commit_icon: "@"

      # - type: status
      #   style: diamond
      #   foreground: "p:white"
      #   background: "p:cyan"
      #   background_templates:
      #     - "{{ if .Error }}p:red2{{ end }}"
      #   trailing_diamond: 
      #   template: "<p:dark_blue2></>  "
      #   properties:
      #     always_enabled: false

  - type: rprompt
    overflow: hidden
    segments:
      - type: executiontime
        style: plain
        background: transparent
        foreground: p:yellow
        template: "{{ .FormattedMs }}"
        properties:
          threshold: 5000
          display_style: austin

  - type: prompt
    alignment: left
    newline: true
    segments:
      - type: text
        style: powerline
        powerline_symbol: 
        background: transparent
        foreground: p:magenta
        foreground_templates:
          - "{{ if gt .Code 0 }}p:red{{end}}"
          - "{{ if eq .Code 0 }}p:magenta{{end}}"
        template: "❯"


transient_prompt:
  background: transparent
  foreground: p:magenta
  template: "❯ "

secondary_prompt:
  background: transparent
  foreground: p:magenta
  template: "❯❯ "

palette:
  blue: "blue"
  black: "#262B44"
  magenta: "#F5C2E7"
  red: "#D81E5B"
  green: "#4caf50"
  yellow: "#ffeb3b"
  dark_blue: "#166e78"
  light_blue: "#40c4ff"
  white: "#ffffff"
  cyan: "#00897b"
  red2: "#e91e63"
  dark_blue2: "#193549"