-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathack.omp.linux.toml
More file actions
144 lines (128 loc) · 4.97 KB
/
Copy pathack.omp.linux.toml
File metadata and controls
144 lines (128 loc) · 4.97 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# oh-my-posh doc: https://ohmyposh.dev/docs/
# nerd font icons: https://www.nerdfonts.com/cheat-sheet
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
version = 3
upgrade_notice = false # disable upgrade notice (>= v24.0.0)
auto_upgrade = false # disable auto upgrade (>= v24.0.0)
[[blocks]]
type = 'prompt'
newline = true
alignment = 'left'
[[blocks.segments]]
type = 'text'
style = 'plain'
foreground = 'darkGray'
template = '<b>╭─</b> ' # ┏ (250f) ━ (2501) ╭ (256d) ─ (2500) ╼ (257c)
[[blocks.segments]]
type = 'os'
style = 'plain'
foreground = 'cyan'
template = '{{ if .WSL }}WSL at {{ end }}{{.Icon}} '
[[blocks.segments]]
type = 'shell'
style = 'plain'
foreground = 'cyan'
template = '{{ .Name }}{{ if .Version }} v{{ .Version }}{{ end }}'
[[blocks.segments]]
type = 'root'
style = 'plain'
foreground = 'red'
template = ' ' # (f0780); also (f0498) (f0449), default: (f0e7)
[[blocks.segments]]
type = 'session'
style = 'plain'
foreground = 'lightMagenta'
template = ' {{ if .SSHSession }} {{ end }}{{ .UserName }}<i>@</i>{{ .HostName }}' # (f0318)
[blocks.segments.properties]
display_host = true
#[[blocks.segments]]
# type = 'ipify'
# style = 'plain'
# foreground = 'lightMagenta'
# template = ' [{{ .IP }}]'
# [blocks.segments.properties]
# http_timeout = 1000
# [blocks.segments.cache]
# duration = '30m0s'
# strategy = 'folder'
[[blocks.segments]]
type = 'time'
style = 'plain'
foreground = 'yellow'
template = ' {{ .CurrentDate | date .Format }}' # (f0150), (f017), (f43a)
[blocks.segments.properties]
time_format = '15:04:05'
[[blocks.segments]]
type = 'battery'
style = 'plain'
foreground = '#193549'
foreground_templates = [
'{{ if eq "Full" .State.String }}#66BB6A{{ end }}',
'{{ if eq "Charging" .State.String }}#64B5F6{{ end }}',
'{{ if eq "Discharging" .State.String }}#E36464{{ end }}',
]
template = ' [{{ if not .Error }}{{.Percentage}}{{ end }}{{.Icon}}{{.Error}}]' # (f03f0)
[blocks.segments.properties]
charged_icon = ' ' # (f0079), (f240)
charging_icon = ' ' # (f0084), (f0e7)
discharging_icon = ' ' # (f007f), (f242)
[[blocks.segments]]
type = 'path'
style = 'plain'
foreground = 'green'
template = ' {{ .Path }} ' # (e5ff), (f024b), (f07b), (f114), (f115), (e5fe), (f07c), (f0770)
[blocks.segments.properties]
style = 'full'
# home_icon = "\uf7db"
folder_separator_icon = '/'
[blocks.segments.properties.mapped_locations]
'~/Desktop' = '~/ ' # (f07c0)
'~/Documents' = '~/ ' # (f0219), (f0f6), (f15c), (f19f7), (f19f6), (f40e?? think this got changed at some point)
'~/Downloads' = '~/ ' # (f024d), (f0ed), (f0162), (f019), (f01da), (f409), (f10e9)
'~/Music' = '~/ ' # (f0388), (f001), (f075a), (f0223), (f0384), (f0385), (f0386), (f1359)
'~/OneDrive' = '~/ ' # (e762), (f03ca)
'~/Pictures' = '~/ ' # (f024f), (f03e), (f1c5), (f021f), (f02e9), (f02eb)
'~/Videos' = '~/ ' # (f0567), (f447), (f03d), (f1c8), (f022b)
[[blocks.segments]]
type = 'python'
style = 'plain'
foreground = 'yellow'
template = ' {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ' # (e235); (e73c); (f0320); (e606)
[blocks.segments.properties]
display_mode = 'context'
[[blocks.segments]]
type = 'git'
style = 'plain'
foreground = 'lightBlue'
template = '{{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} {{ .WorktreeCount }}{{ end }} ' # (f044); (f046); (f0193); (f1bb)
[blocks.segments.properties]
fetch_stash_count = true
fetch_upstream_icon = true
[[blocks.segments]]
type = 'status'
style = 'diamond'
foreground = '#ffffff'
background = 'transparent' # '#00897b',
background_templates = [
# '{{ if .Error }}#e91e63{{ end }}',
'{{ if .Error }}lightRed{{ end }}',
]
[blocks.segments.properties]
always_enabled = false
# status_template = '{{ if eq .Code 0 }}\uf00c{{ else }}\uf071 {{ reason .Code }}{{ end }}'
status_template = '{{ if eq .Code 0 }}{{ else }} {{ .Code }}{{ end }}'
[[blocks]]
type = 'prompt'
newline = true
alignment = 'left'
[[blocks.segments]]
type = 'text'
style = 'plain'
foreground = 'darkGray'
template = '<b>╰─</b>' # ┗ (2517) ━ (2501) ╰ (2570) ─ (2500)
[[blocks.segments]]
type = 'text'
style = 'plain'
foreground = 'green'
# possibilities for end: ❯ (\u276f), 〉 》 ▶ ▷ ❯ ❱ ➜ ➤
template = ' WHAT?!? {{ if .Root }}<red>#</>{{ else }}❯❯{{ end }} '