parent
98935dc9ba
commit
419857f7d5
1 changed files with 4 additions and 3 deletions
|
@ -54,12 +54,13 @@ rwx_tmux_server() {
|
||||||
--fields \"1\"
|
--fields \"1\"
|
||||||
}
|
}
|
||||||
rwx_tmux_servers() {
|
rwx_tmux_servers() {
|
||||||
local active name root sockets text
|
local active name root sockets text user_id
|
||||||
active=\"\$(rwx_tmux_server)\"
|
active=\"\$(rwx_tmux_server)\"
|
||||||
root=\"/tmp/tmux-\$(id -u)\"
|
user_id=\"\$(id -u)\"
|
||||||
|
root=\"/tmp/tmux-\${user_id}\"
|
||||||
sockets=\"\$(find \"\${root}\" -type s -printf \"%P\\n\")\"
|
sockets=\"\$(find \"\${root}\" -type s -printf \"%P\\n\")\"
|
||||||
while IFS= read -r name; do
|
while IFS= read -r name; do
|
||||||
if tmux -L \"\${name}\" list-sessions; then
|
if tmux -L \"\${name}\" list-sessions >/dev/null; then
|
||||||
text=\"\${text}\\
|
text=\"\${text}\\
|
||||||
#[fg=default]\\
|
#[fg=default]\\
|
||||||
#[bg=default] \\
|
#[bg=default] \\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue