oh-my-posh.toml 4.1 KB

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