oh-my-posh.toml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. '$schema' = 'https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json'
  2. version = 4
  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.options]
  26. style = 'mixed'
  27. mixed_threshold = 16
  28. folder_icon = ''
  29. display_root = true
  30. [[blocks.segments]]
  31. type = 'git'
  32. 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 }} '
  33. foreground = '#efdcf9'
  34. background = '#2c1048'
  35. style = 'powerline'
  36. powerline_symbol = ''
  37. [blocks.segments.options]
  38. branch_icon = ''
  39. branch_template = '{{ trunc 25 .Branch }}'
  40. disable_with_jj = true
  41. fetch_stash_count = true
  42. fetch_status = true
  43. fetch_upstream_icon = true
  44. untracked_modes = {'*' = 'no'}
  45. [[blocks.segments]]
  46. type = 'jujutsu'
  47. template = ' 󱗆 {{ .ChangeID }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }} '
  48. foreground = '#efdcf9'
  49. background = '#2c1048'
  50. style = 'powerline'
  51. powerline_symbol = ''
  52. [blocks.segments.options]
  53. fetch_status = true
  54. change_id_min_len = 4
  55. [[blocks.segments]]
  56. type = 'terraform'
  57. template = '  {{ .WorkspaceName }} '
  58. foreground = '#efdcf9'
  59. background = '#3a1c50'
  60. style = 'powerline'
  61. powerline_symbol = ''
  62. [[blocks.segments]]
  63. type = 'time'
  64. template = ' {{ .CurrentDate | date .Format }} '
  65. foreground = '#efdcf9'
  66. background = '#4c1f5e'
  67. style = 'powerline'
  68. powerline_symbol = ''
  69. [blocks.segments.options]
  70. time_format = '15:04'
  71. [[blocks.segments]]
  72. type = 'executiontime'
  73. template = '{{ .FormattedMs }} '
  74. foreground = '#efdcf9'
  75. background = '#4c1f5e'
  76. style = 'powerline'
  77. powerline_symbol = ''
  78. [[blocks.segments]]
  79. type = 'text'
  80. template = '{{ if gt .SHLVL 1 }} SHLVL:{{ .SHLVL }} {{ end }}'
  81. foreground = '#efdcf9'
  82. background = '#5a276a'
  83. style = 'diamond'
  84. trailing_diamond = ''
  85. [[blocks.segments]]
  86. type = 'text'
  87. template = '{{ if gt .Jobs 0 }} {{ .Jobs }} {{ end }}'
  88. foreground = '#efdcf9'
  89. background = '#69307a'
  90. style = 'diamond'
  91. trailing_diamond = ''
  92. [blocks.segments.options]
  93. always_enabled = true
  94. [[blocks.segments]]
  95. type = 'status'
  96. template = '{{ if gt .Code 0 }} {{ .String }} {{ end }}'
  97. foreground = '#efdcf9'
  98. background = '#754083'
  99. style = 'diamond'
  100. trailing_diamond = ''
  101. [[blocks]]
  102. type = 'prompt'
  103. alignment = 'left'
  104. newline = true
  105. [[blocks.segments]]
  106. type = 'text'
  107. style = 'plain'
  108. template = '{{ if .Root }}#{{ else }}${{ end }}'
  109. background_templates = ['{{ if .Root }}#771111{{ end }}']
  110. [[tooltips]]
  111. tips = ['pydoc3', 'python', 'python3', 'uv', 'pip', 'pip3']
  112. type = 'python'
  113. template = ' {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}'
  114. foreground = '#efdcf9'
  115. background = '#341948'
  116. style = 'diamond'
  117. leading_diamond = ''
  118. trailing_diamond = ''
  119. [[tooltips]]
  120. tips = ['node', 'bun']
  121. type = 'node'
  122. template = '{{ .PackageManagerIcon }} {{ .PackageManagerName }} {{ .Full }}'
  123. foreground = '#efdcf9'
  124. background = '#341948'
  125. style = 'diamond'
  126. leading_diamond = ''
  127. trailing_diamond = ''
  128. [tooltips.options]
  129. display_mode = 'always'
  130. fetch_package_manager = true