diff --git a/tmux_control b/tmux_control index bdf0e8d..f6ffb69 100755 --- a/tmux_control +++ b/tmux_control @@ -43,7 +43,7 @@ case "$invocation" in readarray -d '' sockets < <(find "/tmp/tmux-$(id -u)" -maxdepth 1 -type s -print0) for socket in ${sockets[*]}; do printf '%s\n' "$socket" - tmux -L "${socket}" list-sessions | sed 's/^/ /' + tmux -L "$(basename "${socket}")" list-sessions | sed 's/^/ /' done exit 0 esac