mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-25 00:03:06 +01:00
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
|
version: 2
|
|||
|
blocks:
|
|||
|
# prompt on the right
|
|||
|
- type: rprompt
|
|||
|
overflow: hidden
|
|||
|
segments:
|
|||
|
- background: transparent
|
|||
|
foreground: yellow
|
|||
|
style: plain
|
|||
|
template: "{{ .FormattedMs }}"
|
|||
|
type: executiontime
|
|||
|
properties:
|
|||
|
threshold: 1
|
|||
|
|
|||
|
# prompt segment
|
|||
|
- type: prompt
|
|||
|
alignment: left
|
|||
|
newline: true
|
|||
|
segments:
|
|||
|
- foreground: "#77E4F7"
|
|||
|
template: "{{ .Path }} "
|
|||
|
type: path
|
|||
|
properties:
|
|||
|
home_icon: " "
|
|||
|
style: agnoster_short
|
|||
|
|
|||
|
# git segment
|
|||
|
- type: git
|
|||
|
foreground: "#C678DD"
|
|||
|
properties:
|
|||
|
fetch_status: true
|
|||
|
style: plain
|
|||
|
# template:
|
|||
|
# "<#ffffff>on</> {{ .HEAD }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed)
|
|||
|
# (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String
|
|||
|
# }}{{ end }}"
|
|||
|
template: "<#ffffff>on</> {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }} {{end}} "
|
|||
|
|
|||
|
# current language info
|
|||
|
- type: node
|
|||
|
foreground: "#98C379"
|
|||
|
properties:
|
|||
|
fetch_version: true
|
|||
|
style: plain
|
|||
|
template: " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }} {{ .Full }} "
|
|||
|
|
|||
|
- alignment: left
|
|||
|
segments:
|
|||
|
- foreground: "#63F08C"
|
|||
|
style: plain
|
|||
|
template: "➜ "
|
|||
|
type: text
|
|||
|
type: prompt
|
|||
|
# bash won't play along :)
|
|||
|
# transient_prompt:
|
|||
|
# background: transparent
|
|||
|
# foreground_templates:
|
|||
|
# - "{{if gt .Code 0}}red{{end}}"
|
|||
|
# - "{{if eq .Code 0}}magenta{{end}}"
|
|||
|
# template: "❯ "
|
|||
|
|