diff --git a/sh/tmux.sh b/sh/tmux.sh index 1ed865d..3630bfc 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -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