You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.6 KiB

  1. #:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
  2. version = 2
  3. final_space = true
  4. console_title_template = '{{ .Shell }} in {{ .Folder }}'
  5. [[blocks]]
  6. type = 'prompt'
  7. alignment = 'left'
  8. newline = true
  9. [[blocks.segments]]
  10. type = 'path'
  11. style = 'plain'
  12. background = 'transparent'
  13. foreground = 'blue'
  14. template = '{{ .Path }}'
  15. [blocks.segments.properties]
  16. style = 'full'
  17. [[blocks.segments]]
  18. type = 'git'
  19. style = 'plain'
  20. foreground = 'p:grey'
  21. background = 'transparent'
  22. template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
  23. [blocks.segments.properties]
  24. fetch_status = true
  25. [[blocks]]
  26. type = 'rprompt'
  27. overflow = 'hidden'
  28. [[blocks.segments]]
  29. type = 'executiontime'
  30. style = 'plain'
  31. foreground = 'yellow'
  32. background = 'transparent'
  33. template = '{{ .FormattedMs }}'
  34. [blocks.segments.properties]
  35. threshold = 5000
  36. [[blocks]]
  37. type = 'prompt'
  38. alignment = 'left'
  39. newline = true
  40. [[blocks.segments]]
  41. type = 'text'
  42. style = 'plain'
  43. foreground_templates = [
  44. "{{if gt .Code 0}}red{{end}}",
  45. "{{if eq .Code 0}}magenta{{end}}",
  46. ]
  47. background = 'transparent'
  48. template = '❯'
  49. [transient_prompt]
  50. foreground_templates = [
  51. "{{if gt .Code 0}}red{{end}}",
  52. "{{if eq .Code 0}}magenta{{end}}",
  53. ]
  54. background = 'transparent'
  55. template = '❯ '
  56. [secondary_prompt]
  57. foreground = 'magenta'
  58. background = 'transparent'
  59. template = '❯❯ '