Created
October 1, 2012 18:22
-
-
Save djui/3813504 to your computer and use it in GitHub Desktop.
p0wn your tmux session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias tmux-p0wn='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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An alias for your shell to quickly detach all clients with a smaller terminal resolution from the local session. If several clients have the same resolution, the youngest clients will be detached.