feat(omp): nix shell

This commit is contained in:
Paul Fey 2025-02-15 21:46:53 +01:00
parent 2cd8f38847
commit 616cdc0e81
4 changed files with 23 additions and 1 deletions

View file

@ -33,6 +33,15 @@ final_space = true
[blocks.segments.properties]
cache_duration = 'none'
[[blocks.segments]]
style = 'plain'
type = 'command'
template = '{{ if .Output }}() {{ end }}'
[blocks.segments.properties]
shell = 'bash'
command = "echo $PATH | grep -qc /nix/store && echo true"
interpret = false
[[blocks.segments]]
foreground = 'white'
type = 'path'

View file

@ -27,6 +27,15 @@ final_space = true
template = '{{ if .SSHSession }}(SSH) {{ end }}'
type = 'session'
[[blocks.segments]]
style = 'plain'
type = 'command'
template = '{{ if .Output }}(Nix-Shell) {{ end }}'
[blocks.segments.properties]
shell = 'bash'
command = "echo $PATH | grep -qc /nix/store && echo true"
interpret = false
[[blocks.segments]]
style = 'plain'
foreground = 'white'