oh-my-posh-agnoster-mod/adam-minimal.omp.yaml

45 lines
1.4 KiB
YAML

# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 2
blocks:
- type: prompt
alignment: left
segments:
- type: status
foreground: "#000000"
template:
- type: root
foreground: "#ff0000"
template: "#"
- type: path
foreground: "#000000"
template: "{{ .Path }} "
properties:
folder_icon:
folder_separator_icon: " \ue0b1 "
home_icon: 🏡
mapped_locations:
~/Src/opensource: "\uf09b "
~/Src/work: "💼"
max_depth: 2.0
style: agnoster_short
- type: git
foreground: "#193549"
foreground_templates:
- "{{ if or (.Working.Changed) (.Staging.Changed) }}#193549{{ end }}"
- "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}"
- "{{ if gt .Ahead 0 }}#B388FF{{ end }}"
- "{{ if gt .Behind 0 }}#B388FB{{ end }}"
template: "{{ .UpstreamIcon }}{{ .HEAD }}{{ if or
(.Working.Changed) (.Staging.Changed) (gt .StashCount 0)}} {{end}}{{ if .Working.Changed }}\uF448{{ end }}{{ if .Staging.Changed }}{{ end }}{{ if gt .StashCount 0 }}{{ end }} "
properties:
fetch_status: true
fetch_upstream_icon: true
untracked_modes:
/Users/user/Projects/oh-my-posh/: "no"
- type: python
foreground: "#00b041"
template: "\ue235 {{ .Venv }} "
- type: text
foreground: "#000000"
template: "\ue0b1 "