add_newline = true format = """${custom.docker_compose}$git_branch$git_status$character""" right_format = """$username[@](red)$hostname $cmd_duration$time $directory""" [git_branch] format = "[$branch]($style) " [git_status] format = '[$all_status$ahead_behind]($style)' [username] show_always = true format = "[$user]($style)" style_user = "blue bold" [hostname] ssh_only = false format = "[$hostname]($style)" style = "blue bold" [directory] truncation_length = 5 truncate_to_repo = false style = "cyan bold" [cmd_duration] min_time = 5_000 show_milliseconds = true format = '[$duration]($style) ' [time] disabled = false format = "[$time]($style)" style = "green" [character] 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' ''' detect_files = ["docker-compose.yml", "docker-compose.yaml", "compose.yml", "compose.yaml"] shell = ["bash", "--noprofile", "--norc"] style = "blue bold" symbol = "" format = "[$output]($style) "