servers/paths
All checks were successful
/ job (push) Successful in 4m56s

This commit is contained in:
Marc Beninca 2025-06-30 02:20:11 +02:00
parent e73028f3d0
commit 4682d25093
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -21,9 +21,11 @@ rwx_tmux_servers() {
local active=\"\$(rwx_tmux_server)\"
local ifs=\"\${IFS}\"
local name path text
local paths=\"\$(lsof -U |
awk \"/^tmux:.*\\(LISTEN\\)\$/ {print \\\$9}\")\"
IFS=\"
\"
for path in \$(lsof -U | awk \"/^tmux:.*\\(LISTEN\\)\$/ {print \$9}\"); do
for path in \${paths}; do
name=\"\$(basename \"\${path}\")\"
if [ \"\${active}\" = \"\${name}\" ]; then
text=\"\${text}#[fg=green]\"