servers: id → dirname
This commit is contained in:
parent
69edbd40d7
commit
03b1198d2a
1 changed files with 2 additions and 3 deletions
|
@ -151,10 +151,9 @@ rwx_tmux_server() {
|
|||
|
||||
# return active & current servers socket names
|
||||
rwx_tmux_servers() {
|
||||
local active name root sockets text user_id
|
||||
local active name root sockets text
|
||||
active=\"\$(rwx_tmux_server)\"
|
||||
user_id=\"\$(id -u)\"
|
||||
root=\"/tmp/tmux-\${user_id}\"
|
||||
root=\"\$(dirname \"\${TMUX}\")\"
|
||||
sockets=\"\$(find \"\${root}\" -type s -printf \"%P\\n\")\"
|
||||
while IFS= read -r name; do
|
||||
if tmux -L \"\${name}\" list-sessions >/dev/null; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue