feat(omp): nix shell
This commit is contained in:
parent
2cd8f38847
commit
616cdc0e81
4 changed files with 23 additions and 1 deletions
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue