Skip to content

Instantly share code, notes, and snippets.

@yrashk
Forked from djui/tmux-p0wn.sh
Created October 1, 2012 18:28
Show Gist options
  • Save yrashk/3813539 to your computer and use it in GitHub Desktop.
Save yrashk/3813539 to your computer and use it in GitHub Desktop.
p0wn your tmux session
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