oh-my-posh.toml 3.8 KB

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