4 lines
184 B
Bash
Executable file
4 lines
184 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
|
|
tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t
|