feat: add dev indicator to devshells
This commit is contained in:
@@ -27,6 +27,12 @@ final_space = true
|
|||||||
[blocks.segments.properties]
|
[blocks.segments.properties]
|
||||||
cache_duration = 'none'
|
cache_duration = 'none'
|
||||||
style = 'full'
|
style = 'full'
|
||||||
|
[[blocks.segments]]
|
||||||
|
type = "text"
|
||||||
|
template = "{{if eq .Env.name \"nix-shell-env\"}} (dev){{end}}"
|
||||||
|
foreground = "yellow"
|
||||||
|
background = "transparent"
|
||||||
|
style = "plain"
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
|
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
|
||||||
|
|||||||
1
aliases/ndev.sh
Executable file
1
aliases/ndev.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
nix develop -c zsh
|
||||||
@@ -275,7 +275,7 @@ label:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#network.disconnected {
|
#network.disconnected {
|
||||||
background-color: @alert-bg-color;
|
background-color: @bg-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-vpn.disconnected {
|
#custom-vpn.disconnected {
|
||||||
|
|||||||
Reference in New Issue
Block a user