feat: add dev indicator to devshells

This commit is contained in:
2025-06-22 12:59:39 -07:00
parent 62a2897cc5
commit adc21bdc69
3 changed files with 8 additions and 1 deletions

View File

@@ -27,6 +27,12 @@ final_space = true
[blocks.segments.properties]
cache_duration = 'none'
style = 'full'
[[blocks.segments]]
type = "text"
template = "{{if eq .Env.name \"nix-shell-env\"}} (dev){{end}}"
foreground = "yellow"
background = "transparent"
style = "plain"
[[blocks.segments]]
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'