Advertisement
Guest User

myprofile.omp.json

a guest
May 31st, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.34 KB | Source Code | 0 0
  1. {
  2. "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  3. "blocks": [
  4. {
  5. "alignment": "left",
  6. "segments": [
  7. {
  8. "background": "#0077c2",
  9. "foreground": "#ffffff",
  10. "leading_diamond": "\u256d\u2500\ue0b6",
  11. "style": "diamond",
  12. "template": "\uf120 {{ .Name }} ",
  13. "type": "shell"
  14. },
  15. {
  16. "background": "#ef5350",
  17. "foreground": "#FFFB38",
  18. "style": "diamond",
  19. "template": "<parentBackground>\ue0b0</> \uf292 ",
  20. "type": "root"
  21. },
  22. {
  23. "background": "#FF9248",
  24. "foreground": "#2d3436",
  25. "powerline_symbol": "\ue0b0",
  26. "properties": {
  27. "folder_icon": " \uf07b ",
  28. "home_icon": "\ue617",
  29. "style": "folder"
  30. },
  31. "style": "powerline",
  32. "template": " \uf07b\uea9c {{ .Path }} ",
  33. "type": "path"
  34. },
  35. {
  36. "background": "#FFFB38",
  37. "background_templates": [
  38. "{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
  39. "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}",
  40. "{{ if gt .Ahead 0 }}#C792EA{{ end }}",
  41. "{{ if gt .Behind 0 }}#C792EA{{ end }}"
  42. ],
  43. "foreground": "#011627",
  44. "powerline_symbol": "\ue0b0",
  45. "properties": {
  46. "branch_icon": "\ue725 ",
  47. "fetch_status": true,
  48. "fetch_upstream_icon": true
  49. },
  50. "style": "powerline",
  51. "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} ",
  52. "type": "git"
  53. },
  54. {
  55. "background": "#83769c",
  56. "foreground": "#ffffff",
  57. "properties": {
  58. "style": "roundrock",
  59. "threshold": 0
  60. },
  61. "style": "diamond",
  62. "template": " \ueba2 {{ .FormattedMs }}\u2800",
  63. "trailing_diamond": "\ue0b4",
  64. "type": "executiontime"
  65. }
  66. ],
  67. "type": "prompt"
  68. },
  69. {
  70. "alignment": "right",
  71. "segments": [
  72. {
  73. "background": "#303030",
  74. "foreground": "#3C873A",
  75. "leading_diamond": "\ue0b6",
  76. "properties": {
  77. "fetch_package_manager": true,
  78. "npm_icon": " <#cc3a3a>\ue5fa</> ",
  79. "yarn_icon": " <#348cba>\ue6a7</>"
  80. },
  81. "style": "diamond",
  82. "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
  83. "trailing_diamond": "\ue0b4 ",
  84. "type": "node"
  85. },
  86. {
  87. "background": "#306998",
  88. "foreground": "#FFE873",
  89. "leading_diamond": "\ue0b6",
  90. "style": "diamond",
  91. "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}",
  92. "trailing_diamond": "\ue0b4 ",
  93. "type": "python"
  94. },
  95. {
  96. "background": "#0e8ac8",
  97. "foreground": "#ffffff",
  98. "leading_diamond": "\ue0b6",
  99. "style": "diamond",
  100. "template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
  101. "trailing_diamond": "\ue0b4 ",
  102. "type": "java"
  103. },
  104. {
  105. "background": "#0e0e0e",
  106. "foreground": "#0d6da8",
  107. "leading_diamond": "\ue0b6",
  108. "style": "diamond",
  109. "template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}",
  110. "trailing_diamond": "\ue0b4 ",
  111. "type": "dotnet"
  112. },
  113. {
  114. "background": "#ffffff",
  115. "foreground": "#06aad5",
  116. "leading_diamond": "\ue0b6",
  117. "style": "diamond",
  118. "template": "\ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
  119. "trailing_diamond": "\ue0b4 ",
  120. "type": "go"
  121. },
  122. {
  123. "background": "#f3f0ec",
  124. "foreground": "#925837",
  125. "leading_diamond": "\ue0b6",
  126. "style": "diamond",
  127. "template": "\ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
  128. "trailing_diamond": "\ue0b4 ",
  129. "type": "rust"
  130. },
  131. {
  132. "background": "#e1e8e9",
  133. "foreground": "#055b9c",
  134. "leading_diamond": " \ue0b6",
  135. "style": "diamond",
  136. "template": "\ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
  137. "trailing_diamond": "\ue0b4 ",
  138. "type": "dart"
  139. },
  140. {
  141. "background": "#ffffff",
  142. "foreground": "#ce092f",
  143. "leading_diamond": " \ue0b6",
  144. "style": "diamond",
  145. "template": "\ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
  146. "trailing_diamond": "\ue0b4 ",
  147. "type": "angular"
  148. },
  149. {
  150. "background": "#1e293b",
  151. "foreground": "#ffffff",
  152. "leading_diamond": " \ue0b6",
  153. "style": "diamond",
  154. "template": "{{ if .Error }}{{ .Error }}{{ else }}Nx {{ .Full }}{{ end }}",
  155. "trailing_diamond": "\ue0b4 ",
  156. "type": "nx"
  157. },
  158. {
  159. "background": "#945bb3",
  160. "foreground": "#359a25",
  161. "leading_diamond": " \ue0b6",
  162. "style": "diamond",
  163. "template": "<#ca3c34>\ue624</> {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
  164. "trailing_diamond": "\ue0b4 ",
  165. "type": "julia"
  166. },
  167. {
  168. "background": "#ffffff",
  169. "foreground": "#9c1006",
  170. "leading_diamond": "\ue0b6",
  171. "style": "diamond",
  172. "template": "\ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
  173. "trailing_diamond": "\ue0b4 ",
  174. "type": "ruby"
  175. },
  176. {
  177. "background": "#ffffff",
  178. "foreground": "#5398c2",
  179. "leading_diamond": "\ue0b6",
  180. "style": "diamond",
  181. "template": "\uf104<#f5bf45>\uf0e7</>\uf105 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
  182. "trailing_diamond": "\ue0b4 ",
  183. "type": "azfunc"
  184. },
  185. {
  186. "background": "#565656",
  187. "foreground": "#faa029",
  188. "leading_diamond": "\ue0b6",
  189. "style": "diamond",
  190. "template": "\ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}}",
  191. "trailing_diamond": "\ue0b4 ",
  192. "type": "aws"
  193. },
  194. {
  195. "background": "#316ce4",
  196. "foreground": "#ffffff",
  197. "leading_diamond": "\ue0b6",
  198. "style": "diamond",
  199. "template": "\uf308 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}",
  200. "trailing_diamond": "\ue0b4",
  201. "type": "kubectl"
  202. },
  203. {
  204. "background": "#b2bec3",
  205. "foreground": "#222222",
  206. "leading_diamond": "\ue0b6",
  207. "trailing_diamond": "<transparent,background>\ue0b2</>",
  208. "properties": {
  209. "linux": "\ue712",
  210. "macos": "\ue711",
  211. "windows": "\ue70f"
  212. },
  213. "style": "diamond",
  214. "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
  215. "type": "os"
  216. },
  217. {
  218. "background": "#f36943",
  219. "background_templates": [
  220. "{{if eq \"Charging\" .State.String}}#b8e994{{end}}",
  221. "{{if eq \"Discharging\" .State.String}}#fff34e{{end}}",
  222. "{{if eq \"Full\" .State.String}}#33DD2D{{end}}"
  223. ],
  224. "foreground": "#262626",
  225. "invert_powerline": true,
  226. "powerline_symbol": "\ue0b2",
  227. "properties": {
  228. "charged_icon": "\uf240 ",
  229. "charging_icon": "\uf1e6 ",
  230. "discharging_icon": "\ue234 "
  231. },
  232. "style": "powerline",
  233. "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ",
  234. "type": "battery"
  235. },
  236. {
  237. "background": "#40c4ff",
  238. "foreground": "#ffffff",
  239. "invert_powerline": true,
  240. "leading_diamond": "\ue0b2",
  241. "properties": {
  242. "time_format": "_2,15:04"
  243. },
  244. "style": "diamond",
  245. "template": " \uf073 {{ .CurrentDate | date .Format }} ",
  246. "trailing_diamond": "\ue0b4",
  247. "type": "time"
  248. }
  249. ],
  250. "type": "prompt"
  251. },
  252. {
  253. "alignment": "left",
  254. "newline": true,
  255. "segments": [
  256. {
  257. "foreground": "#21c7c7",
  258. "style": "plain",
  259. "template": "\u2570\u2500",
  260. "type": "text"
  261. },
  262. {
  263. "foreground": "#e0f8ff",
  264. "foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"],
  265. "properties": {
  266. "always_enabled": true
  267. },
  268. "style": "plain",
  269. "template": "\ue285\ueab6 ",
  270. "type": "status"
  271. }
  272. ],
  273. "type": "prompt"
  274. }
  275. ],
  276. "version": 2
  277. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement