Compare commits

..

2 Commits

Author SHA1 Message Date
2ff01208fb realised i needed the venv thing 2026-04-01 20:23:41 +01:00
82b4a638e8 made the weird flake thing dynamic 2026-04-01 20:22:42 +01:00

View File

@@ -17,17 +17,22 @@ final_space = true
alignment = 'left'
newline = true
[[blocks.segments]]
type = 'text'
style = 'plain'
foreground = '#89dceb' # Nix Blue
template = '{{ if hasPrefix "flake-" .Env.name }}󱄅 flake <#7f849c>|</> {{ end }}'
[[blocks.segments]] # Rust nix shell
type = 'text'
style = 'plain'
foreground = 'red'
template = '{{ if contains "rustshell-env" .Env.name }}🦀 rustproject <#7f849c>|</> {{ end }}'
[[blocks.segments]]
type = 'text'
style = 'plain'
template = '''
{{- if .Env.DEVSHELL_NAME -}}
{{- $parts := split "|" .Env.DEVSHELL_NAME -}}
{{- range $part := $parts -}}
{{- if $part -}}
{{- $sub := split "/" $part -}}
{{- if eq (len $sub) 2 -}}
<{{ index $sub "_1" }}>{{ index $sub "_0" }}</> <#7f849c>| </>
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
'''
[[blocks.segments]] # Python venv
type = 'text'