tmux improvements + starship supports docker compose

This commit is contained in:
2026-01-30 13:32:20 +01:00
parent e9102fa097
commit 75493e31cc
2 changed files with 16 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
add_newline = true
format = """$git_branch$git_status$character"""
format = """${custom.docker_compose}$git_branch$git_status$character"""
right_format = """$username[@](red)$hostname $cmd_duration$time $directory"""
[git_branch]
@@ -36,3 +36,11 @@ 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) "