added shell prefix for nix shells and some nix changes

This commit is contained in:
2026-04-17 20:23:38 +01:00
parent 7addd55554
commit 76fa7ec2cc
2 changed files with 7 additions and 1 deletions

View File

@@ -40,6 +40,12 @@ template = '''
foreground = 'yellow' foreground = 'yellow'
template = '{{ if .Env.VIRTUAL_ENV }}🐍 venv <grey>|</> {{ end }}' template = '{{ if .Env.VIRTUAL_ENV }}🐍 venv <grey>|</> {{ end }}'
[[blocks.segments]] # Nix shell indicator
type = 'text'
style = 'plain'
foreground = 'blue'
template = '{{ if .Env.IN_NIX_SHELL }} nsh <grey>|</> {{ end }}'
[[blocks.segments]] [[blocks.segments]]
template = '{{ .Path }}' template = '{{ .Path }}'
foreground = 'blue' foreground = 'blue'

2
.nixos

Submodule .nixos updated: fea8fde271...ae3dbafe8b