51 lines
1.2 KiB
TOML
51 lines
1.2 KiB
TOML
add_newline = false
|
|
format = """${custom.docker_compose}$git_branch$git_status$fill$directory
|
|
$character"""
|
|
right_format = """$cmd_duration$username[@](red)$hostname $time"""
|
|
|
|
[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"
|
|
format = "[$path]($style)[$read_only]($read_only_style)"
|
|
|
|
[cmd_duration]
|
|
min_time = 5_000
|
|
format = '[$duration]($style) '
|
|
|
|
[time]
|
|
disabled = false
|
|
format = "[$time]($style)"
|
|
style = "green"
|
|
|
|
[fill]
|
|
symbol = " "
|
|
|
|
[character]
|
|
success_symbol = "[➤](green)"
|
|
error_symbol = "[➤](red)"
|
|
|
|
[custom.docker_compose]
|
|
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)"
|