dotfiles

Форк
0
/
.ohmyposh 
93 строки · 2.5 Кб
1
{
2
  "final_space": true,
3
  "version": 2,
4
  "palette": {
5
    "mauve": "#CBA6F7",
6
    "red": "#F38BA8",
7
    "yellow": "#F9E2AF",
8
    "green": "#A6E3A1"
9
  },
10
  "blocks": [
11
    {
12
      "alignment": "left",
13
      "newline": true,
14
      "type": "prompt",
15
      "segments": [
16
        {
17
          "style": "plain",
18
          "template": "{{ .Path }} ",
19
          "type": "path",
20
          "foreground": "p:mauve",
21
          "properties": {
22
            "home_icon": "~",
23
            "style": "full"
24
          }
25
        },
26
        {
27
          "template": "<p:yellow>{{ .HEAD }}{{ if .Working.Changed }} \uf044 {{ .Working.String }} {{ end }}</>{{ if and .Working.Changed ( or .Staging.Changed ( or .Behind .Ahead ) ) }}|{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }} {{ end }}{{ if and .Staging.Changed (or .Behind .Ahead) }}|{{ end }}{{ if .Behind }} ⇣ {{ end }}{{ if .Ahead }} ⇡ {{ end }} ",
28
          "style": "plain",
29
          "type": "git",
30
          "foreground": "p:green",
31
          "properties": {
32
            "branch_icon": "\ue725 ",
33
            "cherry_pick_icon": "\ue29b ",
34
            "commit_icon": "\uf417 ",
35
            "fetch_status": true,
36
            "merge_icon": "\ue727 ",
37
            "no_commits_icon": "\uf0c3 ",
38
            "rebase_icon": "\ue728 ",
39
            "revert_icon": "\uf0e2 ",
40
            "tag_icon": "\uf412 "
41
          }
42
        },
43
        {
44
          "type": "status",
45
          "foreground": "p:red",
46
          "template": "{{ if .Error }}❖ {{ .Code }} {{ end }}"
47
        }
48
      ]
49
    },
50
    {
51
      "alignment": "left",
52
      "newline": true,
53
      "type": "prompt",
54
      "segments": [
55
        {
56
          "style": "plain",
57
          "foreground": "p:mauve",
58
          "template": "{{if .Root}}#{{else}}${{end}}",
59
          "type": "text",
60
          "foreground_templates": ["{{if gt .Code 0}}p:red{{end}}"]
61
        }
62
      ]
63
    },
64
    {
65
      "type": "rprompt",
66
      "overflow": "hidden",
67
      "segments": [
68
        {
69
          "type": "executiontime",
70
          "style": "plain",
71
          "foreground": "p:mauve",
72
          "background": "transparent",
73
          "template": "{{ .FormattedMs }}",
74
          "properties": {
75
            "threshold": 5000
76
          }
77
        }
78
      ]
79
    }
80
  ],
81
  "secondary_prompt": {
82
    "foreground": "p:mauve",
83
    "background": "transparent",
84
    "template": "{{if .Root}}#{{else}}${{end}}"
85
  },
86
  "transient_prompt": {
87
    "style": "plain",
88
    "foreground": "p:mauve",
89
    "template": "{{if .Root}}#{{else}}${{end}} ",
90
    "type": "text",
91
    "foreground_templates": ["{{if gt .Code 0}}p:red{{end}}"]
92
  }
93
}
94

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.