Compare commits
2 Commits
59244870dc
...
2ff01208fb
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ff01208fb | |||
| 82b4a638e8 |
@@ -20,14 +20,19 @@ final_space = true
|
|||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'text'
|
type = 'text'
|
||||||
style = 'plain'
|
style = 'plain'
|
||||||
foreground = '#89dceb' # Nix Blue
|
template = '''
|
||||||
template = '{{ if hasPrefix "flake-" .Env.name }} flake <#7f849c>|</> {{ end }}'
|
{{- if .Env.DEVSHELL_NAME -}}
|
||||||
|
{{- $parts := split "|" .Env.DEVSHELL_NAME -}}
|
||||||
[[blocks.segments]] # Rust nix shell
|
{{- range $part := $parts -}}
|
||||||
type = 'text'
|
{{- if $part -}}
|
||||||
style = 'plain'
|
{{- $sub := split "/" $part -}}
|
||||||
foreground = 'red'
|
{{- if eq (len $sub) 2 -}}
|
||||||
template = '{{ if contains "rustshell-env" .Env.name }}🦀 rustproject <#7f849c>|</> {{ end }}'
|
<{{ index $sub "_1" }}>{{ index $sub "_0" }}</> <#7f849c>| </>
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
'''
|
||||||
|
|
||||||
[[blocks.segments]] # Python venv
|
[[blocks.segments]] # Python venv
|
||||||
type = 'text'
|
type = 'text'
|
||||||
|
|||||||
Reference in New Issue
Block a user