This commit is contained in:
2026-01-31 22:03:02 +01:00
parent 12d006660d
commit 4df60e4992

View File

@@ -27,7 +27,6 @@ format = "[$path]($style)[$read_only]($read_only_style)"
[cmd_duration]
min_time = 5_000
show_milliseconds = true
format = '[$duration]($style) '
[time]
@@ -43,9 +42,9 @@ success_symbol = "[➤](green)"
error_symbol = "[➤](red)"
[custom.docker_compose]
command = '''docker compose ps --format json 2>/dev/null | jq -rs 'if length == 0 then halt else [group_by(.State) | .[] | "\(if .[0].State == "running" then "" else "" end)\(length)"] | "🐳 " + join("/") end' '''
command = '''docker compose ps --format json 2>/dev/null | jq -rse 'if length == 0 then halt_error(1) else [group_by(.State) | .[] | "\(if .[0].State == "running" then "" else "" end)\(length)"] | "🐳 " + join("/") end' '''
detect_files = ["docker-compose.yml", "docker-compose.yaml", "compose.yml", "compose.yaml"]
shell = ["bash", "--noprofile", "--norc"]
style = "blue bold"
symbol = ""
format = "[$output]($style) "
format = "[$output ]($style)"