oh-my-posh.toml 3.3 KB

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