This commit is contained in:
parent
e73028f3d0
commit
4682d25093
1 changed files with 3 additions and 1 deletions
|
@ -21,9 +21,11 @@ rwx_tmux_servers() {
|
||||||
local active=\"\$(rwx_tmux_server)\"
|
local active=\"\$(rwx_tmux_server)\"
|
||||||
local ifs=\"\${IFS}\"
|
local ifs=\"\${IFS}\"
|
||||||
local name path text
|
local name path text
|
||||||
|
local paths=\"\$(lsof -U |
|
||||||
|
awk \"/^tmux:.*\\(LISTEN\\)\$/ {print \\\$9}\")\"
|
||||||
IFS=\"
|
IFS=\"
|
||||||
\"
|
\"
|
||||||
for path in \$(lsof -U | awk \"/^tmux:.*\\(LISTEN\\)\$/ {print \$9}\"); do
|
for path in \${paths}; do
|
||||||
name=\"\$(basename \"\${path}\")\"
|
name=\"\$(basename \"\${path}\")\"
|
||||||
if [ \"\${active}\" = \"\${name}\" ]; then
|
if [ \"\${active}\" = \"\${name}\" ]; then
|
||||||
text=\"\${text}#[fg=green]\"
|
text=\"\${text}#[fg=green]\"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue