fixed weird color shit in oh-my-posh and changed nixos wivrn stuff

This commit is contained in:
2026-04-18 19:28:34 +01:00
parent c0a171e431
commit 9a7ca6cb1a
2 changed files with 4 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ template = '''
{{- if $part -}}
{{- $sub := split "/" $part -}}
{{- if eq (len $sub) 2 -}}
<{{ index $sub "_1" }}>{{ index $sub "_0" }}</> <#7f849c>| </>
<{{ index $sub "_1" }}>{{ index $sub "_0" }}</> <#7f849c>| </>
{{- end -}}
{{- end -}}
{{- end -}}
@@ -37,14 +37,12 @@ template = '''
[[blocks.segments]] # Python venv
type = 'text'
style = 'plain'
foreground = 'yellow'
template = '{{ if .Env.VIRTUAL_ENV }}🐍 venv <grey>|</> {{ end }}'
template = '{{ if .Env.VIRTUAL_ENV }}<yellow>🐍 venv</> <#7f849c>|</> {{ end }}'
[[blocks.segments]] # Nix shell indicator
type = 'text'
style = 'plain'
foreground = 'blue'
template = '{{ if .Env.IN_NIX_SHELL }} nsh <grey>|</> {{ end }}'
template = '{{ if and .Env.IN_NIX_SHELL (not .Env.DEVSHELL_NAME) }}<blue> nsh</> <#7f849c>|</> {{ end }}'
[[blocks.segments]]
template = '{{ .Path }}'