no ms
This commit is contained in:
@@ -27,7 +27,6 @@ format = "[$path]($style)[$read_only]($read_only_style)"
|
|||||||
|
|
||||||
[cmd_duration]
|
[cmd_duration]
|
||||||
min_time = 5_000
|
min_time = 5_000
|
||||||
show_milliseconds = true
|
|
||||||
format = '[$duration]($style) '
|
format = '[$duration]($style) '
|
||||||
|
|
||||||
[time]
|
[time]
|
||||||
@@ -43,7 +42,7 @@ success_symbol = "[➤](green)"
|
|||||||
error_symbol = "[➤](red)"
|
error_symbol = "[➤](red)"
|
||||||
|
|
||||||
[custom.docker_compose]
|
[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"]
|
detect_files = ["docker-compose.yml", "docker-compose.yaml", "compose.yml", "compose.yaml"]
|
||||||
shell = ["bash", "--noprofile", "--norc"]
|
shell = ["bash", "--noprofile", "--norc"]
|
||||||
style = "blue bold"
|
style = "blue bold"
|
||||||
|
|||||||
Reference in New Issue
Block a user