Skip to content

Instantly share code, notes, and snippets.

@jdoconnor
Last active March 23, 2020 15:21
Show Gist options
  • Save jdoconnor/6876052 to your computer and use it in GitHub Desktop.
Save jdoconnor/6876052 to your computer and use it in GitHub Desktop.
loop through tmux windows, control c and exit
tmux list-window | awk -F":" '{system("tmux select-window -t "$1"; tmux send-keys C-c; tmux send-keys \"exit\"; tmux send-keys Enter")}'; tmux attach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment