oh-my-posh.toml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. [[blocks]]
  7. type = 'prompt'
  8. alignment = 'left'
  9. newline = true
  10. [[blocks.segments]]
  11. template = ' {{ if .SSHSession }} {{ .HostName }}{{ end }}{{ if .Root }} root{{ end }}'
  12. foreground = '#efdcf9'
  13. foreground_templates = ['{{ if .Root }}#ff3c3c{{ end }}', '{{ if .SSHSession }}#0e050f{{ end }}']
  14. background = '#0e050f'
  15. background_templates = ['{{ if and (not .Root) .SSHSession }}#a060e3{{ end }}']
  16. type = 'session'
  17. style = 'accordion'
  18. [[blocks.segments]]
  19. type = 'path'
  20. template = ' {{ .Path }} '
  21. foreground = '#efdcf9'
  22. background = '#170b3b'
  23. style = 'powerline'
  24. powerline_symbol = ''
  25. [blocks.segments.properties]
  26. style = 'mixed'
  27. mixed_threshold = 16
  28. folder_icon = ''
  29. display_root = true
  30. [[blocks.segments]]
  31. type = 'git'
  32. template = '{{ if not .Segments.Jujutsu.Enabled }} {{ 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 }} {{ end }}'
  33. foreground = '#efdcf9'
  34. background = '#2c1048'
  35. style = 'powerline'
  36. powerline_symbol = ''
  37. [blocks.segments.properties]
  38. branch_icon = ''
  39. branch_template = '{{ trunc 25 .Branch }}'
  40. fetch_stash_count = true
  41. fetch_status = true
  42. fetch_upstream_icon = true
  43. untracked_modes = {'*' = 'no'}
  44. [[blocks.segments]]
  45. type = 'jujutsu'
  46. template = ' 󱗆 {{ .ChangeID }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }} '
  47. foreground = '#efdcf9'
  48. background = '#2c1048'
  49. style = 'powerline'
  50. powerline_symbol = ''
  51. [blocks.segments.properties]
  52. fetch_status = true
  53. change_id_min_len = 4
  54. [[blocks.segments]]
  55. type = 'terraform'
  56. template = '  {{ .WorkspaceName }} '
  57. foreground = '#efdcf9'
  58. background = '#3a1c50'
  59. style = 'powerline'
  60. powerline_symbol = ''
  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