From 85ecf61f89410e6c60f85a6c13e3e2bf6d2b91ce Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 24 Feb 2016 20:10:00 -0600 Subject: [PATCH] Add Kill Other Connections To A Session as a tmux til --- README.md | 1 + tmux/kill-other-connections-to-a-session.md | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tmux/kill-other-connections-to-a-session.md diff --git a/README.md b/README.md index 55a0edf..d317feb 100644 --- a/README.md +++ b/README.md @@ -284,6 +284,7 @@ _345 TILs and counting..._ - [Cycle Through Layouts](tmux/cycle-through-layouts.md) - [Enabling Vi Mode](tmux/enabling-vi-mode.md) - [Jumping Between Sessions](tmux/jumping-between-sessions.md) +- [Kill Other Connections To A Session](tmux/kill-other-connections-to-a-session.md) - [List All Key Bindings](tmux/list-all-key-bindings.md) - [List Sessions](tmux/list-sessions.md) - [Open New Window With A Specific Directory](tmux/open-new-window-with-a-specific-directory.md) diff --git a/tmux/kill-other-connections-to-a-session.md b/tmux/kill-other-connections-to-a-session.md new file mode 100644 index 0000000..3913de4 --- /dev/null +++ b/tmux/kill-other-connections-to-a-session.md @@ -0,0 +1,19 @@ +# Kill Other Connections To A Session + +One of the best features of tmux is the ability for multiple people to +connect to the same session in order to pair. This can, however, sometimes +result in a extra session hanging around if someone forgets to detach. This +is no problem though because you can view and kill other connections. + +Hit + +``` +D +``` + +to open up an interactive list of all connections to the current session. +Then navigate over the one you want to kill and hit `enter`. If you are +viewing the connections but don't want to kill one, you can hit `q` to back +out. + +h/t Josh Davey