oh-my-posh.toml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. '$schema' = 'https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json'
  2. version = 3
  3. async = true
  4. console_title_template = '{{ .Shell }} in {{ .Folder }}'
  5. final_space = true
  6. [upgrade]
  7. notice = true
  8. [[blocks]]
  9. type = 'prompt'
  10. alignment = 'left'
  11. newline = true
  12. [[blocks.segments]]
  13. template = ' {{ if .WSL }} {{ end }}'
  14. foreground = '#efdcf9'
  15. background = '#0e050f'
  16. type = 'os'
  17. style = 'diamond'
  18. [[blocks.segments]]
  19. template = ' {{ if .SSHSession }} {{ .HostName }}{{ end }}{{ if .Root }} root{{ end }}'
  20. foreground = '#efdcf9'
  21. foreground_templates = ['{{ if .Root }}#ff3c3c{{ end }}', '{{ if .SSHSession }}#0e050f{{ end }}']
  22. background = '#0e050f'
  23. background_templates = ['{{ if and (not .Root) .SSHSession }}#a060e3{{ end }}']
  24. type = 'session'
  25. style = 'diamond'
  26. [[blocks.segments]]
  27. type = 'path'
  28. template = ' {{ .Path }} '
  29. foreground = '#efdcf9'
  30. background = '#170b3b'
  31. style = 'powerline'
  32. powerline_symbol = ''
  33. [blocks.segments.properties]
  34. style = 'mixed'
  35. mixed_threshold = 16
  36. folder_icon = ''
  37. display_root = true
  38. [[blocks.segments]]
  39. type = 'git'
  40. template = ' {{ url .UpstreamIcon .UpstreamURL }} {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} '
  41. foreground = '#efdcf9'
  42. background = '#341948'
  43. style = 'powerline'
  44. powerline_symbol = ''
  45. [blocks.segments.properties]
  46. branch_icon = ''
  47. branch_template = '{{ trunc 25 .Branch }}'
  48. fetch_stash_count = true
  49. fetch_status = true
  50. fetch_upstream_icon = true
  51. untracked_modes = {'*' = 'no'}
  52. [[blocks.segments]]
  53. type = 'jujutsu'
  54. template = ' 󱗆 {{.ChangeID}}{{if .Working.Changed}}  {{ .Working.String }}{{ end }} '
  55. foreground = '#efdcf9'
  56. background = '#341948'
  57. style = 'powerline'
  58. powerline_symbol = ''
  59. [blocks.segments.properties]
  60. fetch_status = true
  61. [[blocks.segments]]
  62. type = 'time'
  63. template = ' {{ .CurrentDate | date .Format }} '
  64. foreground = '#efdcf9'
  65. background = '#4c1f5e'
  66. style = 'powerline'
  67. powerline_symbol = ''
  68. [blocks.segments.properties]
  69. time_format = '15:04'
  70. [[blocks.segments]]
  71. type = 'executiontime'
  72. template = '{{ .FormattedMs }} '
  73. foreground = '#efdcf9'
  74. background = '#4c1f5e'
  75. style = 'powerline'
  76. powerline_symbol = ''
  77. [[blocks.segments]]
  78. type = 'text'
  79. template = '{{ if gt .SHLVL 1 }} SHLVL:{{ .SHLVL }} {{ end }}'
  80. foreground = '#efdcf9'
  81. background = '#5a276a'
  82. style = 'diamond'
  83. trailing_diamond = ''
  84. [[blocks.segments]]
  85. type = 'text'
  86. template = '{{ if gt .Jobs 0 }} {{ .Jobs }} {{ end }}'
  87. foreground = '#efdcf9'
  88. background = '#69307a'
  89. style = 'diamond'
  90. trailing_diamond = ''
  91. [blocks.segments.properties]
  92. always_enabled = true
  93. [[blocks.segments]]
  94. type = 'status'
  95. template = '{{ if gt .Code 0 }} {{ .String }} {{ end }}'
  96. foreground = '#efdcf9'
  97. background = '#754083'
  98. style = 'diamond'
  99. trailing_diamond = ''
  100. [[blocks]]
  101. type = 'prompt'
  102. alignment = 'left'
  103. newline = true
  104. [[blocks.segments]]
  105. type = 'text'
  106. style = 'plain'
  107. template = '{{ if .Root }}#{{ else }}${{ end }}'
  108. background_templates = ['{{ if .Root }}#771111{{ end }}']
  109. [[tooltips]]
  110. tips = ['pydoc3', 'python', 'python3', 'uv', 'pip', 'pip3']
  111. type = 'python'
  112. template = ' {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}'
  113. foreground = '#efdcf9'
  114. background = '#341948'
  115. style = 'diamond'
  116. leading_diamond = ''
  117. trailing_diamond = ''
  118. [[tooltips]]
  119. tips = ['node', 'bun']
  120. type = 'node'
  121. template = '{{ .PackageManagerIcon }} {{ .PackageManagerName }} {{ .Full }}'
  122. foreground = '#efdcf9'
  123. background = '#341948'
  124. style = 'diamond'
  125. leading_diamond = ''
  126. trailing_diamond = ''
  127. [tooltips.properties]
  128. display_mode = 'always'
  129. fetch_package_manager = true