-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhybrid-bash-prompt-simple-git.yaml
69 lines (68 loc) · 2.24 KB
/
hybrid-bash-prompt-simple-git.yaml
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 2
console_title_template: "{{ .Folder }}"
blocks:
- type: prompt
alignment: left
segments:
- type: session
style: diamond
powerline_symbol:
foreground: "#000000"
background: "#a6da95"
leading_diamond:
template: "\uf108 {{ .HostName }} "
- type: path
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#01579b"
template: " \ue5ff {{ .Path }} "
properties:
style: full
- type: prompt
alignment: left
segments:
- type: root
style: plain
foreground: "#ff0000"
template: "\ue00a "
# - type: git
# style: powerline
# powerline_symbol:
# foreground: "#000000"
# background: "#c19c00"
# background_templates:
# - "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}"
# - "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFA300{{ end }}"
# - "{{ if gt .Ahead 0 }}#FF7070{{ end }}"
# - "{{ if gt .Behind 0 }}#90F090{{ end }}"
# template: " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} "
# properties:
# fetch_stash_count: true
# fetch_status: true
# fetch_upstream_icon: true
- type: "git"
style: plain
foreground: "yellow"
background: "transparent"
template: " {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>"
properties:
branch_icon: ""
commit_icon: "@"
fetch_status: true
- type: status
style: diamond
foreground: "#ffffff"
background: "#2e9599"
background_templates:
- "{{ if gt .Code 0 }}#f1184c{{ end }}"
trailing_diamond:
template: " "
properties:
always_enabled: true
- type: text
style: plain
foreground: "#ffffff"
template: "\uf054 "
newline: true