1
0

oh-my-posh.toml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 = ' {{ .UpstreamIcon }}{{ .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_template = '{{ trunc 25 .Branch }}'
  46. fetch_stash_count = true
  47. fetch_status = true
  48. fetch_upstream_icon = true
  49. [[blocks.segments]]
  50. type = 'time'
  51. template = ' {{ .CurrentDate | date .Format }} '
  52. foreground = '#efdcf9'
  53. background = '#4c1f5e'
  54. style = 'powerline'
  55. powerline_symbol = ''
  56. [blocks.segments.properties]
  57. time_format = '15:04'
  58. [[blocks.segments]]
  59. type = 'executiontime'
  60. template = '{{ .FormattedMs }} '
  61. foreground = '#efdcf9'
  62. background = '#4c1f5e'
  63. style = 'powerline'
  64. powerline_symbol = ''
  65. [[blocks.segments]]
  66. type = 'text'
  67. template = '{{ if gt .SHLVL 1 }} SHLVL:{{ .SHLVL }} {{ end }}'
  68. foreground = '#efdcf9'
  69. background = '#5a276a'
  70. style = 'diamond'
  71. trailing_diamond = ''
  72. [[blocks.segments]]
  73. type = 'text'
  74. template = '{{ if gt .Jobs 0 }} {{ .Jobs }} {{ end }}'
  75. foreground = '#efdcf9'
  76. background = '#69307a'
  77. style = 'diamond'
  78. trailing_diamond = ''
  79. [blocks.segments.properties]
  80. always_enabled = true
  81. [[blocks.segments]]
  82. type = 'status'
  83. template = '{{ if gt .Code 0 }} {{ .String }} {{ end }}'
  84. foreground = '#efdcf9'
  85. background = '#754083'
  86. style = 'diamond'
  87. trailing_diamond = ''
  88. [[blocks]]
  89. type = 'prompt'
  90. alignment = 'left'
  91. newline = true
  92. [[blocks.segments]]
  93. type = 'text'
  94. style = 'plain'
  95. template = '{{ if .Root }}#{{ else }}${{ end }}'
  96. background_templates = ['{{ if .Root }}#771111{{ end }}']
  97. [[tooltips]]
  98. tips = ['pydoc3', 'python', 'python3', 'uv', 'pip', 'pip3']
  99. type = 'python'
  100. template = ' {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}'
  101. foreground = '#efdcf9'
  102. background = '#341948'
  103. style = 'diamond'
  104. leading_diamond = ''
  105. trailing_diamond = ''