diff --git a/.starship.toml b/.starship.toml index 1d4a69b..23ba712 100644 --- a/.starship.toml +++ b/.starship.toml @@ -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)"