tmux improvements + starship supports docker compose
This commit is contained in:
@@ -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) "
|
||||
|
||||
Reference in New Issue
Block a user