oh-my-posh.toml 3.5 KB

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